You are here

function coder_upgrade_convert_functions in Coder 7

Same name in this branch
  1. 7 coder_upgrade/includes/main.inc \coder_upgrade_convert_functions()
  2. 7 coder_upgrade/conversions/other.inc \coder_upgrade_convert_functions()
Same name and namespace in other branches
  1. 7.2 coder_upgrade/includes/main.inc \coder_upgrade_convert_functions()
  2. 7.2 coder_upgrade/conversions/other.inc \coder_upgrade_convert_functions()

Upgrades functions using grammar parser.

Module Info / Install http://drupal.org/node/224333#update_php

Permissions and Access http://drupal.org/node/224333#hook_permission http://drupal.org/node/224333#descriptions_permissions http://drupal.org/node/224333#hook_node_access

Database http://drupal.org/node/224333#schema_translation http://drupal.org/node/224333#schema_html http://drupal.org/node/224333#install-schema

Menus http://drupal.org/node/224333#hook_menu_link_alter

Blocks http://drupal.org/node/224333#remove_op (DUP Node API)

Comments http://drupal.org/node/224333#remove_op (DUP Node API) (THIS IS MISSING FROM THE CHRONO PAGE!!!)

User API http://drupal.org/node/224333#user_cancel (DONE with remove_op) http://drupal.org/node/224333#remove_op (DUP Node API)

Node API http://drupal.org/node/224333#remove_op (SPANS MULTIPLE HOOKS) http://drupal.org/node/224333#node_build_rss http://drupal.org/node/224333#build_mode http://drupal.org/node/224333#hook_node_xxx

Parameters

PGPReader $reader: The object containing the grammar statements of the file to convert.

1 call to coder_upgrade_convert_functions()
coder_upgrade_apply_parser in coder_upgrade/includes/main.inc
Applies grammar parser conversion routines to a file.

File

coder_upgrade/conversions/other.inc, line 945
Other conversion routine file for the coder_upgrade module.

Code

function coder_upgrade_convert_functions(&$reader) {

  //  clp("inside " . __FUNCTION__);
  cdp("inside " . __FUNCTION__);
  $editor = new PGPEditor();
  $types = array(
    T_FUNCTION,
  );
  $editor
    ->traverseCallback($reader
    ->getFunctions(), 'coder_upgrade_callback_functions', $types, $reader);
}