function rooms_fullcalendar_loaded in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Checks if the FullCalendar Library is loaded.
Return value
bool A boolean indicating the FullCalendar status.
4 calls to rooms_fullcalendar_loaded()
- rooms_availability_bulk_unit_management in modules/
rooms_availability/ rooms_availability.module - Form for the Bulk Availability Management.
- rooms_availability_reference_field_formatter_view in modules/
rooms_availability_reference/ rooms_availability_reference.module - Implements hook_field_formatter_view().
- rooms_preprocess_rooms_three_month_calendar in ./
rooms.module - Default implementation of hook_preprocess_rooms_three_month_calendar().
- rooms_pricing_bulk_pricing_management in modules/
rooms_pricing/ rooms_pricing.module - Page callback for Bulk Pricing Management.
File
- ./
rooms.module, line 146 - Provides basic underlying functionality and configuration options used by all Rooms modules
Code
function rooms_fullcalendar_loaded() {
if (rooms_library_loaded('fullcalendar', 'minified')) {
return TRUE;
}
else {
// Alert the authorized user/administrator to the abscence of the library.
drupal_set_message(t('The FullCalendar Library could not be found.
Please check the installation instructions and the <a href="@status">Status Report</a>.', array(
'@status' => url('admin/reports/status'),
)), 'warning');
return FALSE;
}
}