function _fullcalendar_status in FullCalendar 6
Same name and namespace in other branches
- 6.2 fullcalendar.module \_fullcalendar_status()
- 7.2 fullcalendar.module \_fullcalendar_status()
- 7 fullcalendar.module \_fullcalendar_status()
Checks FullCalendar dependencies, jQuery version, and Colorbox plugin.
Return value
Array with TRUE/FALSE for each dependency.
See also
1 call to _fullcalendar_status()
- fullcalendar_requirements in ./
fullcalendar.install - Implementation of hook_requirements().
File
- ./
fullcalendar.module, line 385 - Provides a views style plugin for FullCalendar
Code
function _fullcalendar_status() {
$status = array();
$status['jquery_version'] = FALSE;
$status['fullcalendar_plugin'] = FALSE;
if (function_exists('jquery_update_get_version')) {
if (version_compare(jquery_update_get_version(), FULLCALENDAR_MIN_JQUERY_VERSION, '>=')) {
$status['jquery_version'] = TRUE;
}
}
if (function_exists('jquery_ui_get_version')) {
if (version_compare(jquery_ui_get_version(), FULLCALENDAR_MIN_JQUERYUI_VERSION, '>=')) {
$status['jqueryui_version'] = TRUE;
}
}
if (version_compare(fullcalendar_get_version(), FULLCALENDAR_MIN_PLUGIN_VERSION, '>=')) {
$status['fullcalendar_plugin'] = TRUE;
}
return $status;
}