function theme_hosting_queues_configure in Hosting 5
Same name and namespace in other branches
- 6.2 hosting.module \theme_hosting_queues_configure()
- 7.4 hosting.module \theme_hosting_queues_configure()
- 7.3 hosting.module \theme_hosting_queues_configure()
File
- ./
hosting.module, line 576 - 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['submit']);
$output .= drupal_render($form);
return $output;
}