function print_mail_update_6003 in Printer, email and PDF versions 5.4
Same name and namespace in other branches
- 6 print_mail/print_mail.install \print_mail_update_6003()
- 5.x print_mail/print_mail.install \print_mail_update_6003()
Update to version 5.x-4.2
File
- print_mail/
print_mail.install, line 161 - Install file of the print_mail module
Code
function print_mail_update_6003() {
// Delete custom text strings set to the default
$ret = array();
$vars = array(
'print_mail_link_text' => 'Send to friend',
'print_mail_text_subject' => '!user has sent you a message from !site',
'print_mail_text_message' => 'Message from sender',
'print_mail_text_content' => '',
'print_mail_text_confirmation' => 'Thank you for spreading the word about !site.',
);
$t = get_t();
foreach ($vars as $name => $default) {
if (variable_get($name, '') == $t($default)) {
variable_del($name);
}
}
menu_rebuild();
return $ret;
}