function theme_skinr_ui_admin_library_fieldset in Skinr 7.2
Returns HTML for the skin info listing form.
Parameters
$variables: An associative array containing:
- form: A render element representing the form.
1 theme call to theme_skinr_ui_admin_library_fieldset()
- skinr_ui_admin_library_form in ./
skinr_ui.admin.inc - Menu callback: skins administration.
File
- ./
skinr_ui.admin.inc, line 908 - Admin page callbacks for the Skinr UI module.
Code
function theme_skinr_ui_admin_library_fieldset($variables) {
$form = $variables['form'];
// Individual table headers.
$rows = array();
// Iterate through all the modules, which are
// children of this fieldset.
foreach (element_children($form) as $skin_name) {
// Stick it into $skinset for easier accessing.
$skin_info = $form[$skin_name];
$row = array();
// Enabled.
unset($skin_info['enable']['#title']);
$row[] = array(
'class' => array(
'checkbox',
),
'data' => drupal_render($skin_info['enable']),
);
// Name.
$label = '<label';
if (isset($module['enable']['#id'])) {
$label .= ' for="' . $module['enable']['#id'] . '"';
}
$row[] = $label . '><strong>' . drupal_render($skin_info['name']) . '</strong></label>';
// Source.
$row[] = drupal_render($skin_info['source']);
$row[] = drupal_render($skin_info['version']);
// Theme hooks.
$row[] = drupal_render($skin_info['theme hooks']);
$rows[] = $row;
}
return theme('table', array(
'header' => $form['#header'],
'rows' => $rows,
));
}