function devel_variable_form_after_build

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

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;
}