function theme_date_repeat_current_exceptions in Date 7.3
Same name and namespace in other branches
- 8 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
- 5.2 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
- 6.2 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
- 6 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
- 7 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
- 7.2 date_repeat/date_repeat_form.inc \theme_date_repeat_current_exceptions()
Theme the exception list as a table so the buttons line up.
File
- date_repeat/
date_repeat_form.inc, line 998 - Add a date repeat selection form to a date field.
Code
function theme_date_repeat_current_exceptions($vars) {
$rows = $vars['rows'];
$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 exceptions'),
),
'rows' => $rows_info,
));
}