You are here

function fullcalendar_library in FullCalendar 7.2

Same name and namespace in other branches
  1. 7 fullcalendar.module \fullcalendar_library()

Implements hook_library().

File

./fullcalendar.module, line 54
Provides a views style plugin for FullCalendar

Code

function fullcalendar_library() {
  $path = variable_get('fullcalendar_path', fullcalendar_default_path());
  $css_files = array(
    $path . '/fullcalendar.css' => array(
      'media' => 'screen',
    ),
  );

  // Add fullcalendar.print.css if it is available.
  if (version_compare(fullcalendar_get_version(), '1.5.0', '>=')) {
    $css_files[$path . '/fullcalendar.print.css'] = array(
      'media' => 'print',
    );
  }
  $libraries['fullcalendar'] = array(
    'title' => 'FullCalendar',
    'website' => 'http://arshaw.com/fullcalendar',
    'version' => FULLCALENDAR_MIN_PLUGIN_VERSION,
    'js' => array(
      fullcalendar_get_js_path() => array(),
      $path . '/gcal.js' => array(),
    ),
    'css' => $css_files,
    'dependencies' => array(
      array(
        'system',
        'ui.draggable',
      ),
      array(
        'system',
        'ui.droppable',
      ),
      array(
        'system',
        'ui.resizable',
      ),
      array(
        'system',
        'effects.highlight',
      ),
    ),
  );
  return $libraries;
}