You are here

function calendar_systems_patch in Calendar Systems 6.2

Same name and namespace in other branches
  1. 8 calendar_systems.module \calendar_systems_patch()
  2. 6.3 calendar_systems.module \calendar_systems_patch()
  3. 6 calendar_systems.module \calendar_systems_patch()
  4. 7.3 calendar_systems.module \calendar_systems_patch()
  5. 7 calendar_systems.module \calendar_systems_patch()
  6. 7.2 calendar_systems.module \calendar_systems_patch()

Implements hook_patch().

See also

http://drupal.org/project/patchdoq

http://doques.net/node/367

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;
}