function theme_date_repeat_current_exceptions in Date 6.2
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 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 379 - 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($rows = array()) {
$rows_info = array();
foreach ($rows as $key => $value) {
if (drupal_substr($key, 0, 1) != '#') {
$rows_info[] = array(
drupal_render($value['action']),
drupal_render($value['display']),
);
}
}
return theme('table', array(
t('Delete'),
t('Current exceptions'),
), $rows_info);
}