You are here

function title_update_7002 in Title 7

Update title_auto_attach variables to the new format.

File

./title.install, line 60
Installation functions for the Title module.

Code

function title_update_7002() {
  $variables = array();
  foreach (variable_get('title_auto_attach', array()) as $variable) {
    $pieces = explode(':', $variable);
    $variables['title_' . $pieces[0]]['auto_attach'][$pieces[1]] = $pieces[1];
  }
  foreach ($variables as $name => $value) {
    variable_set($name, $value);
  }
  variable_del('title_auto_attach');
}