Commit b804fc99 authored by jcnventura's avatar jcnventura

Delete 6.x update functions

parent d08475b8
......@@ -130,31 +130,3 @@ function print_schema() {
return $schema;
}
/**
* Update to version 6.x-1.2
*/
function print_update_6003() {
// Delete custom text strings set to the default
$ret = array();
$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;
}
......@@ -120,29 +120,3 @@ function print_mail_schema() {
return $schema;
}
/**
* Update to version 6.x-1.2
*/
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;
}
......@@ -110,25 +110,3 @@ function print_pdf_schema() {
return $schema;
}
/**
* Update to version 6.x-1.2
*/
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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment