function _calendar_systems_patches in Calendar Systems 6.2
Internal helper which acts as a patch information pool.
@todo
- Make the pool pluggable if required!
Parameters
$req: Imply whether to return all patches information or just the required ones.
Return value
Either partial or full patch files info.
4 calls to _calendar_systems_patches()
- calendar_systems_patch in ./
calendar_systems.module - Implements hook_patch().
- _calendar_systems_patches_applied in ./
calendar_systems.patch.inc - Internal helper to check whether the required patches are currently applied.
- _calendar_systems_patches_pm_delete in ./
calendar_systems.patch.inc - Internal helper to remove a patch_manager.module patch record.
- _calendar_systems_patches_pm_insert in ./
calendar_systems.patch.inc - Internal helper to create patch records for the lazy patch_manager project.
File
- ./
calendar_systems.patch.inc, line 24 - A collection of internal helpers around the compatibility patches.
Code
function _calendar_systems_patches($req = FALSE) {
$t = get_t();
$required = $optional = array();
// Required patches.
$required['common.inc'] = array(
// Relative path to target file:
'target' => 'includes/common.inc',
// Target component name:
'target module' => 'core',
// Target component version:
'target version' => '6.19',
// The name of the patch file itself:
'name' => 'common.inc-format_date.d6.patch',
// Relative path to patch file's directory:
'path' => drupal_get_path('module', 'calendar_systems') . '/patches/',
// Patch fingerprint to check the target file contents against:
'fingerprint' => 'foreach (module_implements(\'format_date\') as $module)',
// A description of what the patch supposed to do:
'description' => $t('Drupal core common.inc expansion to support hook_format_date() implementations.'),
// Patch title:
'title' => $t('Calendar Systems common.inc patch for Drupal core'),
// Drupal.org issue number, if available:
'issue' => NULL,
);
// Optional patches.
$optional['uc_deliverytimeslot'] = array(
// Relative path to target file:
'target' => drupal_get_path('module', 'uc_deliverytimeslot') . '/uc_deliverytimeslot.module',
// Target component name:
'target module' => 'uc_deliverytimeslot',
// Target component version:
'target version' => '6.x-1.0-beta4',
// The name of the patch file itself:
'name' => 'uc_deliverytimeslot-format_date.d6.patch',
// Relative path to patch file's directory:
'path' => drupal_get_path('module', 'calendar_systems') . '/patches/',
// Patch fingerprint to check the target file contents against:
'fingerprint' => '$row[] = array(\'data\' => t(\'!day\', array(\'!day\' => format_date($timestamps, \'custom\', \'l\'))),',
// A description of what the patch supposed to do:
'description' => $t('Ubercart Delivery Timeslot module to use format_date() and support for calendar_systems.module.'),
// Patch title:
'title' => $t('Calendar Systems patch for Ubercart Delivery Timeslot module'),
// Drupal.org issue number, if available:
'issue' => '970768',
);
return $req ? $required : $required + $optional;
}