Commit 278c2d52 authored by Dries's avatar Dries

- Patch #7403 by jhriggs: the required-form-items patch that hit HEAD a few...

- Patch #7403 by jhriggs: the required-form-items patch that hit HEAD a few days back has an erroneous assignment in form_radios().
parent 1391df9f
......@@ -86,6 +86,31 @@ function drupal_get_breadcrumb() {
}
/* @} */
/**
* @name Page tabs
* @ingroup common
*
* Functions to get and set the tabs of the current page.
* @{
*/
/**
* @param $tab Array of links to use for tabs
*/
function drupal_set_tab($tab = NULL) {
static $stored_tab = array();
if (!is_null($tab)) {
$stored_tab[] = $tab;
}
return $stored_tab;
}
function drupal_get_tab() {
return drupal_set_tab();
}
/* @} */
/**
* @name HTML head contents
* @ingroup common
......@@ -995,7 +1020,7 @@ function form_radios($title, $name, $value, $options, $description = NULL, $requ
foreach ($options as $key => $choice) {
$choices .= "<label class=\"option\"><input type=\"radio\" class=\"form-radio\" name=\"edit[$name]\" value=\"$key\"". ($key == $value ? " checked=\"checked\"" : "") ." /> $choice</label><br />";
}
return theme('form_element', $title, $choices, $description, $required = FALSE);
return theme('form_element', $title, $choices, $description, $required);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment