menu_rebuild();
return $ret;
}
+
+/**
+ * Update to version 6.x-1.11
+ */
+function print_update_6004() {
+ $ret = array();
+ // BLOCK_CACHE_PER_PAGE -> 4
+ $ret[] = update_sql("UPDATE {blocks} SET cache = 4 WHERE module = 'print' AND delta = 0");
+ // BLOCK_CACHE_GLOBAL -> 8
+ $ret[] = update_sql("UPDATE {blocks} SET cache = 8 WHERE module = 'print' AND delta = 1");
+ return $ret;
+}
}
return $ret;
}
+
+/**
+ * Update to version 6.x-1.11
+ */
+function print_mail_update_6005() {
+ $ret = array();
+ // BLOCK_CACHE_GLOBAL -> 8
+ $ret[] = update_sql("UPDATE {blocks} SET cache = 8 WHERE module = 'print_mail' AND delta = 0");
+ return $ret;
+}
while ($variable = db_fetch_object($settings)) {
variable_del($variable->name);
}
-
- variable_del('print_pdf_wkhtmltopdf_xdisplay');
- variable_del('print_pdf_xvfb_options');
}
/**
}
return $ret;
}
+
+/**
+ * Update to version 6.x-1.11
+ */
+function print_pdf_update_6005() {
+ $ret = array();
+
+ variable_del('print_pdf_wkhtmltopdf_xdisplay');
+ variable_del('print_pdf_xvfb_options');
+
+ // BLOCK_CACHE_GLOBAL -> 8
+ $ret[] = update_sql("UPDATE {blocks} SET cache = 8 WHERE module = 'print_pdf' AND delta = 0");
+ return $ret;
+}