function theme_domain_batch_form in Domain Access 5
Same name and namespace in other branches
- 6.2 domain.admin.inc \theme_domain_batch_form()
- 7.3 domain.admin.inc \theme_domain_batch_form()
- 7.2 domain.admin.inc \theme_domain_batch_form()
FormsAPI
File
- ./
domain_admin.inc, line 901 - Administration functions for the domain module.
Code
function theme_domain_batch_form($form) {
$output = '';
$output = drupal_render($form['message']);
$header = array(
t('Id'),
t('Domain'),
t('Setting'),
);
$rows = array();
foreach (element_children($form['domain_batch']) as $key) {
$temp = $form['domain_batch'][$key]['#title'];
unset($form['domain_batch'][$key]['#title']);
$row = array(
$key,
$form['domain_batch'][$key]['#sitename'],
drupal_render($form['domain_batch'][$key]),
);
$rows[] = $row;
$form['domain_batch'][$key]['#title'] = $temp;
}
$output .= drupal_render($form['domain_batch']);
$output .= theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}