You are here

function bat_fullcalendar_set_css_files in Booking and Availability Management Tools for Drupal 7

Sets up CSS files for fullcalendar and calls an alter to allow other modules to change them.

Parameters

array $user_css_files:

Return value

array

1 call to bat_fullcalendar_set_css_files()
theme_bat_fullcalendar in modules/bat_fullcalendar/bat_fullcalendar.module
Theme function for FullCalendar.

File

modules/bat_fullcalendar/bat_fullcalendar.module, line 670
Manages the display of FullCalendar and provides ways for other modules to easily modify it.

Code

function bat_fullcalendar_set_css_files($user_css_files = array()) {
  if (count($user_css_files) > 0) {
    $css_files = $user_css_files;
  }
  else {
    $css_files = array(
      drupal_get_path('module', 'bat_fullcalendar') . '/css/bat_fullcalendar_timeline.css',
      drupal_get_path('module', 'bat_fullcalendar') . '/css/fullcalendar.theme.css',
    );
  }

  // Provide alter hook to change calendar css files.
  drupal_alter('bat_fullcalendar_render_css', $css_files);
  return $css_files;
}