You are here

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

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

Return value

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

2 calls to rooms_library_loaded()
rooms_fullcalendar_loaded in ./rooms.module
Checks if the FullCalendar Library is loaded.
rooms_requirements in ./rooms.install
Implements hook_requirements().

File

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

Code

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