You are here

function print_mail_update_6003 in Printer, email and PDF versions 6

Same name and namespace in other branches
  1. 5.4 print_mail/print_mail.install \print_mail_update_6003()
  2. 5.x print_mail/print_mail.install \print_mail_update_6003()

Update to version 6.x-1.2

File

print_mail/print_mail.install, line 237
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 by email',
    '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;
}