You are here

function coder_upgrade_upgrade_call_db_result_alter in Coder 7

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

Implements hook_upgrade_call_db_result_alter().

File

coder_upgrade/conversions/call.inc, line 637
Provides conversion routines applied to function calls.

Code

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

  // Create helper objects.
  $editor = PGPEditor::getInstance();

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

  // Process function call.
  $p0 = $item
    ->printParameter();
  $temp = $editor
    ->textToStatements(trim($p0) . '->fetchField();');
  $item = $temp
    ->getElement(0);
}