You are here

function rooms_libraries_info in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Implements hook_libraries_info().

File

./rooms.module, line 88
Provides basic underlying functionality and configuration options used by all Rooms modules

Code

function rooms_libraries_info() {
  $libraries['fullcalendar'] = array(
    'name' => 'FullCalendar',
    'vendor url' => 'http://fullcalendar.io',
    'download url' => 'https://github.com/arshaw/fullcalendar/releases/download/v3.1.0/fullcalendar-3.1.0.zip',
    'version arguments' => array(
      'file' => 'fullcalendar.js',
      // 3.1.0
      'pattern' => '/v(\\d+\\.\\d+\\.\\d)/',
      'lines' => 3,
    ),
    'files' => array(
      'js' => array(
        'lib/moment.min.js',
        'fullcalendar.js',
        'gcal.js',
      ),
      'css' => array(
        'fullcalendar.css',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'lib/moment.min.js',
            'fullcalendar.min.js',
            'gcal.js',
          ),
          'css' => array(
            'fullcalendar.min.css',
          ),
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'lib/moment.min.js',
            'fullcalendar.js',
            'gcal.js',
          ),
          'css' => array(
            'fullcalendar.css',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}