function theme_date_repeat_display in Date 8
Same name and namespace in other branches
- 5.2 date/date.theme \theme_date_repeat_display()
- 6.2 date/date.theme \theme_date_repeat_display()
- 6 date/date.theme \theme_date_repeat_display()
- 7.3 date_repeat_field/date_repeat_field.module \theme_date_repeat_display()
- 7 date.theme \theme_date_repeat_display()
- 7.2 date_repeat_field/date_repeat_field.module \theme_date_repeat_display()
Theme the human-readable description for a Date Repeat rule.
TODO - add in ways to store the description in the date so it isn't regenerated over and over and find a way to allow description to be shown or hidden.
1 string reference to 'theme_date_repeat_display'
- date_repeat_field_theme in date_repeat_field/
date_repeat_field.module - Implements hook_theme().
1 theme call to theme_date_repeat_display()
- theme_date_display_combination in ./
date.theme - Returns HTML for a date element formatted as a Start/End combination.
File
- date_repeat_field/
date_repeat_field.module, line 56 - Creates the option of Repeating date fields and manages Date fields that use the Date Repeat API.
Code
function theme_date_repeat_display($vars) {
$field = $vars['field'];
$item = $vars['item'];
$entity = !empty($vars['node']) ? $vars['node'] : NULL;
$output = '';
if (!empty($item['rrule'])) {
$output = date_repeat_rrule_description($item['rrule']);
$output = '<div>' . $output . '</div>';
}
return $output;
}