You are here

function bat_fullcalendar_library_loaded in Booking and Availability Management Tools for Drupal 7

Helper function to check if a library is loaded properly or not.

Parameters

$name - string fullcalendar or fullcalendar-scheduler:

$variant - string source or minified:

Return value

bool Boolean indicating if the library is properly loaded or not.

2 calls to bat_fullcalendar_library_loaded()
bat_fullcalendar_requirements in modules/bat_fullcalendar/bat_fullcalendar.install
Implements hook_requirements().
theme_bat_fullcalendar in modules/bat_fullcalendar/bat_fullcalendar.module
Theme function for FullCalendar.

File

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

Code

function bat_fullcalendar_library_loaded($name, $variant = 'minified') {
  return ($library = libraries_load($name, $variant)) && !empty($library['loaded']);
}