You are here

function theme_notifications_send_intervals_form in Notifications 6.4

Same name and namespace in other branches
  1. 6.2 notifications.admin.inc \theme_notifications_send_intervals_form()
  2. 6.3 notifications.admin.inc \theme_notifications_send_intervals_form()

Build a table with send intervals

File

./notifications.admin.inc, line 372

Code

function theme_notifications_send_intervals_form($element) {
  $output = '';

  //drupal_render($element['digest']);
  $header = array(
    array(
      'data' => t('Time'),
      'colspan' => 2,
    ),
    t('Display name'),
    t('Format'),
    t('Default'),
  );
  foreach (element_children($element['intervals']) as $key) {
    $rows[] = array(
      drupal_render($element['intervals'][$key]['time']),
      drupal_render($element['intervals'][$key]['unit']),
      drupal_render($element['intervals'][$key]['name']),
      drupal_render($element['intervals'][$key]['build']),
      drupal_render($element['default'][$key]),
    );
  }
  $element['intervals']['#value'] = theme('table', $header, $rows);

  //$output .= theme('table', $header, $rows);
  $output .= drupal_render($element);
  return $output;
}