You are here

function your_module_name_upgrade_call_function_name_alter in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/coder_upgrade.api.php \your_module_name_upgrade_call_function_name_alter()

Implements hook_upgrade_call_FUNCTION_NAME_alter().

File

coder_upgrade/coder_upgrade.api.php, line 459
Documents hooks provided by this module.

Code

function your_module_name_upgrade_call_function_name_alter(&$node, &$reader) {

  // Get the function call object.
  $item =& $node->data;

  // Change the function name.
  $item->name['value'] = 'new_name';
  if ($item
    ->parameterCount() > 0) {

    // Delete the first parameter.
    $item
      ->deleteParameter();
  }
}