You are here

function _fullcalendar_status in FullCalendar 6.2

Same name and namespace in other branches
  1. 6 fullcalendar.module \_fullcalendar_status()
  2. 7.2 fullcalendar.module \_fullcalendar_status()
  3. 7 fullcalendar.module \_fullcalendar_status()

Checks FullCalendar dependencies, jQuery version, and Colorbox plugin.

Return value

Array with TRUE/FALSE for each dependency.

See also

fullcalendar_requirements()

1 call to _fullcalendar_status()
fullcalendar_requirements in ./fullcalendar.install
Implementation of hook_requirements().

File

./fullcalendar.module, line 362
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;
}