domain_batch_list($batch)
domain_admin.inc, line 792
Lists available batch updates for the domain module.
$batch An array of batch actions, as defined by hook_domainbatch().
A themed table of links and descriptions for batch actions.
function domain_batch_list($batch) {
$header = array(t('Action'), t('Description'));
$rows = array();
uasort($batch, 'domain_batch_sort');
foreach ($batch as $key => $value) {
$rows[] = array(l($value['#form']['#title'], 'admin/build/domain/batch/'. $key), $value['#meta_description']);
}
$output = '<p>'. t('Batch updates allow you to edit values for multiple domains at one time. These functions are helpful when moving your sites from staging to production, or any time you need to make mass changes quickly. The following batch update actions may be performed.') .'</p>';
$output .= '<p><em>'. t('Note that you will only be shown domains on which each action may be performed. If the module is not yet configured, some actions may be empty.') .'</em></p>';
return $output . theme('table', $header, $rows);
}