You are here

function print_update_6007 in Printer, email and PDF versions 6

Same name and namespace in other branches
  1. 5.x print.install \print_update_6007()

Update to version 6.x-1.11

File

./print.install, line 358
Install file of the print module

Code

function print_update_6007() {
  $ret = array();
  foreach (node_get_types() as $key => $value) {
    $print_display = variable_get('print_display_' . $value->type, 1);
    $print_display_comment = variable_get('print_display_comment_' . $value->type, 0);
    $print_display_urllist = variable_get('print_display_urllist_' . $value->type, 1);
    $ret[] = update_sql("UPDATE {print_node_conf} SET link = (link AND {$print_display}), comments = (comments OR {$print_display_comment}), url_list = (url_list AND {$print_display_urllist}) WHERE nid IN (SELECT nid FROM {node} WHERE type = '{$value->type}');");
  }
  return $ret;
}