You are here

function theme_mostpopular_config_service_form_throttles in Drupal Most Popular 6

1 theme call to theme_mostpopular_config_service_form_throttles()
mostpopular_service_config_form in ./mostpopular.admin.inc

File

./mostpopular.admin.inc, line 683
Defines all the administration forms for the Most Popular module.

Code

function theme_mostpopular_config_service_form_throttles($form) {
  $header = array(
    t('Interval'),
    t('Minimum Elapsed Interval'),
    t('Last Run'),
    t('Can Next Run'),
  );
  $rows = array();
  $output = '';
  foreach (element_children($form) as $iid) {
    $row = array();
    foreach (element_children($form[$iid]) as $key) {
      unset($form[$iid][$key]['#title']);
      $row[] = drupal_render($form[$iid][$key]);
    }
    $rows[] = array(
      'data' => $row,
    );
  }
  $output .= theme('table', $header, $rows, array(
    'id' => 'mostpopular-throttles',
  ));
  $output .= drupal_render($form);
  return $output;
}