You are here

function theme_hosting_queues_configure in Hostmaster (Aegir) 6

Theme function to render the queue configuration form.

See also

hosting_queues_configure()

File

modules/hosting/hosting.module, line 669
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;
}