function theme_strongarm_admin_form in Strongarm 6.2
Same name and namespace in other branches
- 6 strongarm.admin.inc \theme_strongarm_admin_form()
- 7.2 strongarm.admin.inc \theme_strongarm_admin_form()
Theme function for the strongarm admin form.
1 theme call to theme_strongarm_admin_form()
- strongarm_admin_form in ./
strongarm.admin.inc - Variable management strongarm form.
File
- ./
strongarm.admin.inc, line 123
Code
function theme_strongarm_admin_form($form) {
drupal_add_js('misc/tableselect.js');
$rows = $headers = array();
$headers[] = theme('table_select_header_cell');
$headers[] = t('Variable');
$headers[] = t('Storage');
$headers[] = t('Value');
foreach (element_children($form['name']) as $name) {
$row = array();
$row[] = isset($form['revert'][$name]) ? drupal_render($form['revert'][$name]) : '';
$row[] = drupal_render($form['name'][$name]);
$row[] = drupal_render($form['storage'][$name]);
$row[] = drupal_render($form['value'][$name]);
$rows[] = $row;
}
$output = theme('table', $headers, $rows);
$output .= drupal_render($form);
return $output;
}