function your_module_name_upgrade_regex_alter in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/coder_upgrade.api.php \your_module_name_upgrade_regex_alter()
Implements hook_upgrade_regex_alter().
File
- coder_upgrade/
coder_upgrade.api.php, line 498 - Documents hooks provided by this module.
Code
function your_module_name_upgrade_regex_alter(&$file) {
$hook = 'your_changes';
// Used as the label in the log file.
$cur = $file;
$new = $cur;
$from = array();
$to = array();
// Do something to $file.
$from[] = '/(your_module_name)/';
$to[] = "\$1";
coder_upgrade_do_conversions($from, $to, $new);
coder_upgrade_save_changes($cur, $new, $file, $hook);
}