function theme_date_repeat_current_exceptions in Date 8
Same name and namespace in other branches
- 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.3 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 924 - Code to add a date repeat selection form to a date field and create an iCal RRULE from the chosen selections.
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,
));
}