You are here

function coder_upgrade_upgrade_hook_elements_alter in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/conversions/function.inc \coder_upgrade_upgrade_hook_elements_alter()

Implements hook_upgrade_hook_elements_alter().

File

coder_upgrade/conversions/function.inc, line 296
Provides conversion routines applied to functions (or hooks).

Code

function coder_upgrade_upgrade_hook_elements_alter(&$node, &$reader) {
  global $_coder_upgrade_module_name;
  $item =& $node->data;

  // Rename function.
  $item->name = $_coder_upgrade_module_name . '_element_info';

  // Update document comment.
  $item->comment = preg_replace('@hook_elements@', "hook_element_info", $item->comment);
}