You are here

function fullcalendar_fullcalendar_classes in FullCalendar 7.2

Same name and namespace in other branches
  1. 8.5 fullcalendar.module \fullcalendar_fullcalendar_classes()
  2. 8 fullcalendar.module \fullcalendar_fullcalendar_classes()
  3. 8.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
  4. 8.3 fullcalendar.module \fullcalendar_fullcalendar_classes()
  5. 8.4 fullcalendar.module \fullcalendar_fullcalendar_classes()
  6. 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;
}