Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
print
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
print
Commits
cc955f75
Commit
cc955f75
authored
Apr 01, 2012
by
jcnventura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1416790
by Irin: remove notices in hook_node_update() functions.
parent
0d958219
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
36 deletions
+18
-36
print.module
print.module
+6
-12
print_mail/print_mail.module
print_mail/print_mail.module
+6
-12
print_pdf/print_pdf.module
print_pdf/print_pdf.module
+6
-12
No files found.
print.module
View file @
cc955f75
...
...
@@ -442,15 +442,9 @@ function print_node_load($nodes, $types) {
*/
function
print_node_insert
(
$node
)
{
if
(
user_access
(
'administer print'
)
||
user_access
(
'node-specific print configuration'
))
{
if
(
!
isset
(
$node
->
print_display
)
||
$node
->
print_display
===
NULL
)
{
$node
->
print_display
=
variable_get
(
'print_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_display_comment
)
||
$node
->
print_display_comment
===
NULL
)
{
$node
->
print_display_comment
=
variable_get
(
'print_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_display_urllist
)
||
$node
->
print_display_urllist
===
NULL
)
{
$node
->
print_display_urllist
=
variable_get
(
'print_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_display
))
$node
->
print_display
=
variable_get
(
'print_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_display_comment
))
$node
->
print_display_comment
=
variable_get
(
'print_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_display_urllist
))
$node
->
print_display_urllist
=
variable_get
(
'print_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
_print_node_conf_modify
(
$node
->
nid
,
$node
->
print_display
,
$node
->
print_display_comment
,
$node
->
print_display_urllist
);
}
...
...
@@ -461,9 +455,9 @@ function print_node_insert($node) {
*/
function
print_node_update
(
$node
)
{
if
(
user_access
(
'administer print'
)
||
user_access
(
'node-specific print configuration'
))
{
if
(
$node
->
print_display
===
NULL
)
$node
->
print_display
=
variable_get
(
'print_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
$node
->
print_display_comment
===
NULL
)
$node
->
print_display_comment
=
variable_get
(
'print_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
$node
->
print_display_urllist
===
NULL
)
$node
->
print_display_urllist
=
variable_get
(
'print_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
if
(
!
isset
(
$node
->
print_display
)
)
$node
->
print_display
=
variable_get
(
'print_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_display_comment
)
)
$node
->
print_display_comment
=
variable_get
(
'print_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_display_urllist
)
)
$node
->
print_display_urllist
=
variable_get
(
'print_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
_print_node_conf_modify
(
$node
->
nid
,
$node
->
print_display
,
$node
->
print_display_comment
,
$node
->
print_display_urllist
);
}
...
...
print_mail/print_mail.module
View file @
cc955f75
...
...
@@ -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
);
}
...
...
print_pdf/print_pdf.module
View file @
cc955f75
...
...
@@ -344,15 +344,9 @@ function print_pdf_node_load($nodes, $types) {
*/
function
print_pdf_node_insert
(
$node
)
{
if
(
user_access
(
'administer print'
)
||
user_access
(
'node-specific print configuration'
))
{
if
(
!
isset
(
$node
->
print_pdf_display
)
||
$node
->
print_pdf_display
===
NULL
)
{
$node
->
print_pdf_display
=
variable_get
(
'print_pdf_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_pdf_display_comment
)
||
$node
->
print_pdf_display_comment
===
NULL
)
{
$node
->
print_pdf_display_comment
=
variable_get
(
'print_pdf_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_pdf_display_urllist
)
||
$node
->
print_pdf_display_urllist
===
NULL
)
{
$node
->
print_pdf_display_urllist
=
variable_get
(
'print_pdf_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
}
if
(
!
isset
(
$node
->
print_pdf_display
))
$node
->
print_pdf_display
=
variable_get
(
'print_pdf_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_pdf_display_comment
))
$node
->
print_pdf_display_comment
=
variable_get
(
'print_pdf_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_pdf_display_urllist
))
$node
->
print_pdf_display_urllist
=
variable_get
(
'print_pdf_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
_print_pdf_node_conf_modify
(
$node
->
nid
,
$node
->
print_pdf_display
,
$node
->
print_pdf_display_comment
,
$node
->
print_pdf_display_urllist
);
}
...
...
@@ -363,9 +357,9 @@ function print_pdf_node_insert($node) {
*/
function
print_pdf_node_update
(
$node
)
{
if
(
user_access
(
'administer print'
)
||
user_access
(
'node-specific print configuration'
))
{
if
(
$node
->
print_pdf_display
===
NULL
)
$node
->
print_pdf_display
=
variable_get
(
'print_pdf_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
$node
->
print_pdf_display_comment
===
NULL
)
$node
->
print_pdf_display_comment
=
variable_get
(
'print_pdf_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
$node
->
print_pdf_display_urllist
===
NULL
)
$node
->
print_pdf_display_urllist
=
variable_get
(
'print_pdf_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
if
(
!
isset
(
$node
->
print_pdf_display
)
)
$node
->
print_pdf_display
=
variable_get
(
'print_pdf_display_'
.
$node
->
type
,
PRINT_TYPE_SHOW_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_pdf_display_comment
)
)
$node
->
print_pdf_display_comment
=
variable_get
(
'print_pdf_display_comment_'
.
$node
->
type
,
PRINT_TYPE_COMMENT_LINK_DEFAULT
);
if
(
!
isset
(
$node
->
print_pdf_display_urllist
)
)
$node
->
print_pdf_display_urllist
=
variable_get
(
'print_pdf_display_urllist_'
.
$node
->
type
,
PRINT_TYPE_URLLIST_DEFAULT
);
_print_pdf_node_conf_modify
(
$node
->
nid
,
$node
->
print_pdf_display
,
$node
->
print_pdf_display_comment
,
$node
->
print_pdf_display_urllist
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment