You are here

function coder_upgrade_convert_begin in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/includes/main.inc \coder_upgrade_convert_begin()

Processes the directory before conversion routines are applied.

This hook can be used to cache information needed by other routines. Example: core changes need to know about hook_theme or hook_menu to make theme changes and form API changes.

Parameters

array $item: Array of a directory containing the files to convert.

1 call to coder_upgrade_convert_begin()
coder_upgrade_start in coder_upgrade/includes/main.inc
Prepares conversion environment and starts conversion loop.

File

coder_upgrade/includes/main.inc, line 150
Manages application of conversion routines, logging, and patch file creation.

Code

function coder_upgrade_convert_begin($item) {
  $dirname = $item['old_dir'];
  coder_upgrade_log_print("\n*************************");
  coder_upgrade_log_print('Pre-processing the directory => ' . $dirname);
  coder_upgrade_log_print("*************************");
  coder_upgrade_log_print("Calling hook_upgrade_begin_alter");
  drupal_alter('upgrade_begin', $item);
  coder_upgrade_log_print("Completed hook_upgrade_begin_alter");
}