function print_pdf_update_6007 in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.4 print_pdf/print_pdf.install \print_pdf_update_6007()
- 5.x print_pdf/print_pdf.install \print_pdf_update_6007()
Update to version 6.x-1.11
File
- print_pdf/
print_pdf.install, line 276 - Install file of the print_pdf module
Code
function print_pdf_update_6007() {
$ret = array();
foreach (node_get_types() as $key => $value) {
$print_pdf_display = variable_get('print_pdf_display_' . $value->type, 1);
$print_pdf_display_comment = variable_get('print_pdf_display_comment_' . $value->type, 0);
$print_pdf_display_urllist = variable_get('print_pdf_display_urllist_' . $value->type, 1);
$ret[] = update_sql("UPDATE {print_pdf_node_conf} SET link = (link AND {$print_pdf_display}), comments = (comments OR {$print_pdf_display_comment}), url_list = (url_list AND {$print_pdf_display_urllist}) WHERE nid IN (SELECT nid FROM {node} WHERE type = '{$value->type}');");
}
return $ret;
}