You are here

function fullcalendar_library in FullCalendar 7

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

Implements hook_library().

File

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

Code

function fullcalendar_library() {
  $libraries['fullcalendar'] = array(
    'title' => 'FullCalendar',
    'website' => 'http://arshaw.com/fullcalendar',
    'version' => FULLCALENDAR_MIN_PLUGIN_VERSION,
    'js' => array(
      fullcalendar_get_js_path() => array(),
    ),
    'css' => array(
      variable_get('fullcalendar_path', FULLCALENDAR_PATH) . '/fullcalendar.css' => array(
        'type' => 'file',
        'media' => 'screen',
      ),
      drupal_get_path('module', 'fullcalendar') . '/fullcalendar.custom.css' => array(
        'type' => 'file',
        'media' => 'screen',
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'ui.draggable',
      ),
      array(
        'system',
        'ui.droppable',
      ),
      array(
        'system',
        'ui.resizable',
      ),
      array(
        'system',
        'effects.highlight',
      ),
    ),
  );
  return $libraries;
}