You are here

function bat_fullcalendar_libraries_info in Booking and Availability Management Tools for Drupal 7

Implements hook_libraries_info().

File

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

Code

function bat_fullcalendar_libraries_info() {
  $libraries['fullcalendar'] = array(
    'name' => 'Full Calendar',
    'vendor url' => 'http://fullcalendar.io',
    'download url' => 'https://github.com/arshaw/fullcalendar/releases/download/v3.9.0/fullcalendar-3.9.0.zip',
    'version arguments' => array(
      'file' => 'fullcalendar.min.js',
      'pattern' => '/v(\\d+\\.\\d+\\.\\d)/',
      'lines' => 3,
    ),
    'files' => array(
      'js' => array(
        'lib/moment.min.js',
        'fullcalendar.js',
        'gcal.js',
        'locale-all.js',
      ),
      'css' => array(
        'fullcalendar.css',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'lib/moment.min.js',
            'fullcalendar.min.js',
            'gcal.js',
            'locale-all.js',
          ),
          'css' => array(
            'fullcalendar.min.css',
          ),
        ),
        'dependencies' => array(),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'lib/moment.min.js',
            'fullcalendar.js',
            'gcal.js',
            'locale-all.js',
          ),
          'css' => array(
            'fullcalendar.css',
          ),
        ),
        'dependencies' => array(),
      ),
    ),
  );
  $libraries['fullcalendar-scheduler'] = array(
    'name' => 'Fullcalendar Scheduler',
    'vendor url' => 'http://fullcalendar.io',
    'download url' => 'https://github.com/fullcalendar/fullcalendar-scheduler/releases/download/v1.9.4/fullcalendar-scheduler-1.9.4.zip',
    'version arguments' => array(
      'file' => 'scheduler.min.js',
      'pattern' => '/(\\d+\\.\\d+\\.\\d)/',
    ),
    'files' => array(
      'js' => array(
        'scheduler.min.js',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'scheduler.min.js',
          ),
          'css' => array(
            'scheduler.min.css',
          ),
        ),
        'dependencies' => array(
          'fullcalendar (>=3.9.0)',
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'scheduler.js',
          ),
          'css' => array(
            'scheduler.css',
          ),
        ),
        'dependencies' => array(
          'fullcalendar (>=3.9.0)',
        ),
      ),
    ),
  );
  return $libraries;
}