You are here

function _fullcalendar_status in FullCalendar 7.2

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

Checks FullCalendar dependencies.

Return value

bool Array with TRUE/FALSE for each dependency.

See also

fullcalendar_requirements()

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

File

./fullcalendar.module, line 349
Provides a views style plugin for FullCalendar

Code

function _fullcalendar_status() {
  $status = array();
  $status['fullcalendar_plugin'] = FALSE;
  $path = fullcalendar_get_js_path();
  if (!file_exists($path)) {
    return FALSE;
  }
  if (version_compare(fullcalendar_get_version($path), FULLCALENDAR_MIN_PLUGIN_VERSION, '>=')) {
    $status['fullcalendar_plugin'] = TRUE;
  }
  return $status;
}