You are here

function print_pdf_update_6003 in Printer, email and PDF versions 5.x

Same name and namespace in other branches
  1. 5.4 print_pdf/print_pdf.install \print_pdf_update_6003()
  2. 6 print_pdf/print_pdf.install \print_pdf_update_6003()

Update to version 6.x-1.2

File

print_pdf/print_pdf.install, line 212
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;
}