summaryrefslogtreecommitdiffstats
path: root/print_mail
diff options
context:
space:
mode:
authorJoao Ventura2012-04-01 22:29:52 +0200
committerJoao Ventura2012-04-01 22:29:52 +0200
commitcc955f75c31bba9999efb0638b2e928fc95df49e (patch)
tree216a3e49468e4ec7275d53547a63f3a3eddcc775 /print_mail
parent0d958219d4211c11ca92bf7bfa336abf3faddaf3 (diff)
Issue #1416790 by Irin: remove notices in hook_node_update() functions.
Diffstat (limited to 'print_mail')
-rw-r--r--print_mail/print_mail.module18
1 files changed, 6 insertions, 12 deletions
diff --git a/print_mail/print_mail.module b/print_mail/print_mail.module
index 5bcfa3c..7e4a607 100644
--- a/print_mail/print_mail.module
+++ b/print_mail/print_mail.module
@@ -233,15 +233,9 @@ function print_mail_node_load($nodes, $types) {
*/
function print_mail_node_insert($node) {
if (user_access('administer print') || user_access('node-specific print configuration')) {
- if (!isset($node->print_mail_display) || $node->print_mail_display === NULL) {
- $node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT);
- }
- if (!isset($node->print_mail_display_comment) || $node->print_mail_display_comment === NULL) {
- $node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT);
- }
- if (!isset($node->print_mail_display_urllist) || $node->print_mail_display_urllist === NULL) {
- $node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT);
- }
+ if (!isset($node->print_mail_display)) $node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT);
+ if (!isset($node->print_mail_display_comment)) $node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT);
+ if (!isset($node->print_mail_display_urllist)) $node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT);
_print_mail_node_conf_modify($node->nid, $node->print_mail_display, $node->print_mail_display_comment, $node->print_mail_display_urllist);
}
@@ -252,9 +246,9 @@ function print_mail_node_insert($node) {
*/
function print_mail_node_update($node) {
if (user_access('administer print') || user_access('node-specific print configuration')) {
- if ($node->print_mail_display === NULL) $node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT);
- if ($node->print_mail_display_comment === NULL) $node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT);
- if ($node->print_mail_display_urllist === NULL) $node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT);
+ if (!isset($node->print_mail_display)) $node->print_mail_display = variable_get('print_mail_display_' . $node->type, PRINT_TYPE_SHOW_LINK_DEFAULT);
+ if (!isset($node->print_mail_display_comment)) $node->print_mail_display_comment = variable_get('print_mail_display_comment_' . $node->type, PRINT_TYPE_COMMENT_LINK_DEFAULT);
+ if (!isset($node->print_mail_display_urllist)) $node->print_mail_display_urllist = variable_get('print_mail_display_urllist_' . $node->type, PRINT_TYPE_URLLIST_DEFAULT);
_print_mail_node_conf_modify($node->nid, $node->print_mail_display, $node->print_mail_display_comment, $node->print_mail_display_urllist);
}