You are here

function theme_notifications_send_intervals in Notifications 6

Same name and namespace in other branches
  1. 5 notifications.admin.inc \theme_notifications_send_intervals()

Build a table with send intervals

1 theme call to theme_notifications_send_intervals()
notifications_send_intervals_form in ./notifications.admin.inc
Send intervals administration

File

./notifications.admin.inc, line 206

Code

function theme_notifications_send_intervals($element) {
  $output = '';
  $header = array(
    array(
      'data' => t('Time'),
      'colspan' => 2,
    ),
    t('Display name'),
    t('Digest'),
  );
  foreach (element_children($element) as $key) {
    $rows[] = array(
      drupal_render($element[$key]['time']),
      drupal_render($element[$key]['unit']),
      drupal_render($element[$key]['name']),
      drupal_render($element[$key]['digest']),
    );
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($element);
  return $output;
}