function commerce_bpc_update_7101 in Commerce Bulk Product Creation 7
Same name and namespace in other branches
- 7.2 commerce_bpc.install \commerce_bpc_update_7101()
Rewrite old tokens to new ones.
File
- ./
commerce_bpc.install, line 21 - (Un)Install hook implementations for the Commerce Bulk product creation module.
Code
function commerce_bpc_update_7101() {
module_load_include('inc', 'commerce_bpc', 'commerce_bpc.settings');
$title_pattern = commerce_bpc_setting('display', 'auto_node_title_pattern');
if ($title_pattern) {
commerce_bpc_setting_set('display', 'auto_node_title_pattern', str_replace('[bulk_display:title_fragment]', '[bulk_defaults:entered_title]', $title_pattern));
}
return t('Rewritten stored variables to use updated tokens');
}