You are here

function hook_upgrade_parser_install_alter in Coder 7

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

Alters an install file using the grammar parser.

This hook allows contributed modules to alter an install file object using the grammar parser. This hook allows for segregation of upgrade routines that only apply to an install file (e.g. the database schema API).

Parameters

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

See also

hook_upgrade_file_alter()

hook_upgrade_hook_HOOK_NAME_alter()

hook_upgrade_hook_alter()

1 function implements hook_upgrade_parser_install_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

coder_upgrade_upgrade_parser_install_alter in coder_upgrade/conversions/install.inc
Implements hook_upgrade_parser_install_alter().
1 invocation of hook_upgrade_parser_install_alter()
coder_upgrade_apply_parser in coder_upgrade/includes/main.inc
Applies grammar parser conversion routines to a file.

File

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

Code

function hook_upgrade_parser_install_alter(&$reader) {

  // Do something to the file.
}