You are here

function devel_variable_form_after_build in Devel 7

After build callback for devel_variable_form().

Wrap each variable name in a <label> element.

1 string reference to 'devel_variable_form_after_build'
devel_variable_form in ./devel.pages.inc
Form constructor for displaying and editing variables.

File

./devel.pages.inc, line 297
Page callbacks for Devel.

Code

function devel_variable_form_after_build($form, &$form_state) {
  foreach ($form['variables']['#options'] as $variable => $element) {
    $form['variables']['#options'][$variable]['name'] = '<label for="' . $form['variables'][$variable]['#id'] . '">' . $element['name'] . '</label>';
  }
  return $form;
}