function print_update_7200 in Printer, email and PDF versions 7.2
Delete old variables.
File
- ./
print.install, line 172 - Install, update and uninstall functions for the print module.
Code
function print_update_7200(&$sandbox) {
variable_del('print_settings');
variable_del('print_sourceurl_settings');
variable_del('print_html_settings');
variable_del('print_robot_settings');
variable_del('print_html_node_link_pages');
variable_del('print_html_node_link_visibility');
variable_del('print_text_links');
variable_del('print_text_published');
variable_del('print_text_retrieved');
variable_del('print_text_source_url');
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\\_display\\_%'");
foreach ($settings as $variable) {
$name = $variable->name;
variable_set(str_replace('print_', 'print_html_', $name), variable_get($name));
variable_del($name);
}
}