You are here

function commerce_bpc_update_7102 in Commerce Bulk Product Creation 7

Same name and namespace in other branches
  1. 7.2 commerce_bpc.install \commerce_bpc_update_7102()

Fix rewritten tokens.

File

./commerce_bpc.install, line 33
(Un)Install hook implementations for the Commerce Bulk product creation module.

Code

function commerce_bpc_update_7102() {
  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_defaults:title_fragment]', '[bulk_defaults:entered_title]', $title_pattern));
  }
  return t('Rewritten stored variables to use updated tokens');
}