function calendar_systems_patch in Calendar Systems 6.2
Same name and namespace in other branches
- 8 calendar_systems.module \calendar_systems_patch()
- 6.3 calendar_systems.module \calendar_systems_patch()
- 6 calendar_systems.module \calendar_systems_patch()
- 7.3 calendar_systems.module \calendar_systems_patch()
- 7 calendar_systems.module \calendar_systems_patch()
- 7.2 calendar_systems.module \calendar_systems_patch()
Implements hook_patch().
See also
http://drupal.org/project/patchdoq
File
- ./
calendar_systems.module, line 94 - Contains Calendar Systems module hooks, helpers and API functions.
Code
function calendar_systems_patch() {
// Include boring patch helpers.
module_load_include('patch.inc', 'calendar_systems');
$patchdoq = array();
$patches = _calendar_systems_patches();
// Build the array as per required by patchdoq.
foreach ($patches as $identifier => $patch) {
$patchdoq[$identifier] = array(
'name' => $patch['title'],
'description' => $patch['description'],
'file' => $patch['path'] . $patch['name'],
'patch arguments' => '-p0',
);
}
return $patchdoq;
}