Commit 49328653 authored by jcnventura's avatar jcnventura

Fix #726146 by marrch_caat: node-specific settings ain't saved on node creation

parent 5983d9e8
......@@ -360,6 +360,15 @@ function print_node_load($nodes, $types) {
}
}
/**
* Implements hook_node_insert().
*/
function print_node_insert($node) {
if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_node_conf_modify($node->nid, $node->print_display, $node->print_display_comment, $node->print_display_urllist);
}
}
/**
* Implements hook_node_update().
*/
......
......@@ -212,6 +212,15 @@ function print_mail_node_load($nodes, $types) {
}
}
/**
* Implements hook_node_insert().
*/
function print_mail_node_insert($node) {
if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_mail_node_conf_modify($node->nid, $node->print_mail_display, $node->print_mail_display_comment, $node->print_mail_display_urllist);
}
}
/**
* Implements hook_node_update().
*/
......
......@@ -260,6 +260,15 @@ function print_pdf_node_load($nodes, $types) {
}
}
/**
* Implements hook_node_insert().
*/
function print_pdf_node_insert($node) {
if (user_access('administer print') || user_access('node-specific print configuration')) {
_print_pdf_node_conf_modify($node->nid, $node->print_pdf_display, $node->print_pdf_display_comment, $node->print_pdf_display_urllist);
}
}
/**
* Implements hook_node_update().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment