function toc_filter_update_6103 in TOC filter 6
Change 'toc_filter_ol_default_title' and 'toc_filter_ul_default_title' to 'toc_filter_numbered_default_title' and 'toc_filter_bullet_default_title'
File
- ./
toc_filter.install, line 23 - Installation information for the 'Table of contents filter' module.
Code
function toc_filter_update_6103() {
$variables = array(
'toc_filter_ol_default_title' => 'toc_filter_number_default_title',
'toc_filter_ul_default_title' => 'toc_filter_bullet_default_title',
);
foreach ($variables as $from => $to) {
if ($value = variable_get($from, '')) {
variable_set($to, $value);
}
variable_del($from);
}
}