You are here

function theme_date_repeat_current_additions in Date 7.3

Same name and namespace in other branches
  1. 8 date_repeat/date_repeat_form.inc \theme_date_repeat_current_additions()
  2. 6.2 date_repeat/date_repeat_form.inc \theme_date_repeat_current_additions()
  3. 7 date_repeat/date_repeat_form.inc \theme_date_repeat_current_additions()
  4. 7.2 date_repeat/date_repeat_form.inc \theme_date_repeat_current_additions()

Theme the exception list as a table so the buttons line up.

File

date_repeat/date_repeat_form.inc, line 1019
Add a date repeat selection form to a date field.

Code

function theme_date_repeat_current_additions($rows = array()) {
  $rows_info = array();
  foreach ($rows as $key => $value) {
    if (substr($key, 0, 1) != '#') {
      $rows_info[] = array(
        drupal_render($value['action']),
        drupal_render($value['display']),
      );
    }
  }
  return theme('table', array(
    'header' => array(
      t('Delete'),
      t('Current additions'),
    ),
    'rows' => $rows_info,
  ));
}