function print_pdf_update_7000 in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 7 print_pdf/print_pdf.install \print_pdf_update_7000()
Remove hardcoded numeric deltas from all blocks.
File
- print_pdf/
print_pdf.install, line 233 - Install, update and uninstall functions for the print_pdf module.
Code
function print_pdf_update_7000(&$sandbox) {
$renamed_deltas = array(
'print_pdf' => array(
'0' => 'print_pdf-top',
),
);
update_fix_d7_block_deltas($sandbox, $renamed_deltas, array());
if (variable_get('print_pdf_filename', '') == '[site-name] - [title] - [mod-yyyy]-[mod-mm]-[mod-dd]') {
variable_set('print_pdf_filename', '[site:name] - [node:title] - [node:changed:custom:Y-m-d]');
}
}