function theme_layout_admin_region_list_form in Layout 7
Theme function for region list administration page.
See also
layout_admin_region_list_form()
File
- ./
layout.admin.regions.inc, line 103 - Responsive layout builder tool administration interface for regions.
Code
function theme_layout_admin_region_list_form($vars) {
$form = $vars['form'];
$header = array(
t('Region'),
t('In default layout'),
t('Weight'),
t('In use in'),
array(
'colspan' => 2,
'data' => t('Operations'),
),
);
$rows = array();
foreach (element_children($form['regions']) as $name) {
$row = array(
drupal_render($form['regions'][$name]['admin_title']) . ' (' . drupal_render($form['regions'][$name]['name']) . ')',
drupal_render($form['regions'][$name]['default']),
drupal_render($form['regions'][$name]['weight']),
drupal_render($form['regions'][$name]['in_use_in_layouts']),
l(t('edit'), 'admin/structure/panels/layouts/regions/' . $name . '/edit'),
l(t('delete'), 'admin/structure/panels/layouts/regions/' . $name . '/delete'),
);
$rows[] = array(
'data' => $row,
'class' => array(
'draggable',
),
);
}
drupal_add_tabledrag('layout-regions', 'order', 'sibling', 'layout-region-weight');
$output = theme('table', array(
'header' => $header,
'rows' => $rows,
'attributes' => array(
'id' => 'layout-regions',
),
));
$output .= drupal_render_children($form);
return $output;
}