function print_pdf_update_6003 in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.install \print_pdf_update_6003()
- 5.x print_pdf/print_pdf.install \print_pdf_update_6003()
Update to version 6.x-1.2
File
- print_pdf/
print_pdf.install, line 214 - Install file of the print_pdf module
Code
function print_pdf_update_6003() {
// Delete custom text strings set to the default
$ret = array();
$vars = array(
'print_pdf_link_text' => 'PDF version',
);
$t = get_t();
foreach ($vars as $name => $default) {
if (variable_get($name, '') == $t($default)) {
variable_del($name);
}
}
menu_rebuild();
return $ret;
}