function fullcalendar_fullcalendar_classes in FullCalendar 7.2
Same name and namespace in other branches
- 8.5 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.3 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.4 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 6.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
Implements hook_fullcalendar_classes().
File
- ./
fullcalendar.module, line 205 - Provides a views style plugin for FullCalendar
Code
function fullcalendar_fullcalendar_classes($entity) {
$classes = array(
'fc-event-default',
$entity->bundle,
);
// Add a class for the date field being used.
if (isset($entity->fullcalendar_date_field)) {
$classes[] = "fc-event-field-{$entity->fullcalendar_date_field}";
}
return $classes;
}