function print_update_6003 in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.x print.install \print_update_6003()
Update to version 6.x-1.2
File
- ./
print.install, line 281 - Install file of the print module
Code
function print_update_6003() {
$ret = array();
$lastversion = drupal_get_installed_schema_version('print');
if ($lastversion >= 5303 && $lastversion < 6000) {
return $ret;
}
// Delete custom text strings set to the default
$vars = array(
'print_html_link_text' => 'Printer-friendly version',
'print_text_published' => 'Published on %site_name',
'print_text_by' => 'By %author',
'print_text_created' => 'Created %date',
'print_text_source_url' => 'Source URL',
'print_text_retrieved' => 'retrieved on %date',
'print_text_links' => 'Links',
);
$t = get_t();
foreach ($vars as $name => $default) {
if (variable_get($name, '') == $t($default)) {
variable_del($name);
}
}
menu_rebuild();
return $ret;
}