function theme_hosting_queues_configure in Hosting 6.2
Same name and namespace in other branches
- 5 hosting.module \theme_hosting_queues_configure()
- 7.4 hosting.module \theme_hosting_queues_configure()
- 7.3 hosting.module \theme_hosting_queues_configure()
Theme function to render the queue configuration form.
See also
File
- ./
hosting.module, line 711 - Hosting module.
Code
function theme_hosting_queues_configure($form) {
$queues = hosting_get_queues();
$rows = array();
$header = array(
'',
t('Description'),
array(
'data' => t('Frequency'),
'class' => 'hosting-queue-frequency-head',
),
t('Last run'),
);
foreach ($queues as $key => $info) {
$row = array();
$row[] = drupal_render($form[$key]['enabled']);
$row[] = drupal_render($form[$key]['description']);
$row[] = drupal_render($form[$key]['frequency']);
$row[] = drupal_render($form[$key]['last_run']);
$rows[] = $row;
}
$output = theme('table', $header, $rows);
$output .= drupal_render($form['help']);
$output .= drupal_render($form['submit']);
$output .= drupal_render($form);
return $output;
}