You are here

function calendar_systems_is_patch_applied in Calendar Systems 6.3

Same name and namespace in other branches
  1. 6 calendar_systems.admin.inc \calendar_systems_is_patch_applied()

Check to see whether the require patch is applied or not

1 call to calendar_systems_is_patch_applied()
calendar_systems_profile_overview in ./calendar_systems.admin.inc
Display overview of setup Calendar systems Editor profiles; menu callback.

File

./calendar_systems.admin.inc, line 359
Integrate Calendar systems editors into Drupal.

Code

function calendar_systems_is_patch_applied() {
  $file_content = file_get_contents(realpath(drupal_get_path('module', 'system') . '/../../includes/common.inc'));
  if (!strpos($file_content, 'foreach (module_implements(\'format_date\') as $module) {') === FALSE) {
    $file_content = null;
    return TRUE;
  }
  unset($file_content);
  return FALSE;
}