Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
print
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
print
Commits
dd30da23
Commit
dd30da23
authored
Feb 10, 2009
by
João Ventura
Browse files
Options
Downloads
Patches
Plain Diff
Move things around a bit
parent
781f5674
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
print_mail/print_mail.module
+30
-30
30 additions, 30 deletions
print_mail/print_mail.module
print_pdf/print_pdf.module
+30
-30
30 additions, 30 deletions
print_pdf/print_pdf.module
with
60 additions
and
60 deletions
print_mail/print_mail.module
+
30
−
30
View file @
dd30da23
...
...
@@ -104,26 +104,6 @@ function print_mail_block_view($delta = 0) {
return
$block
;
}
/**
* Implementation of hook_help().
*/
function
print_mail_help
(
$path
,
$arg
)
{
$print_mail_link_pos
=
variable_get
(
'print_mail_link_pos'
,
array
(
PRINT_MAIL_LINK_POS_DEFAULT
=>
PRINT_MAIL_LINK_POS_DEFAULT
));
if
((
preg_match
(
'!^node/!i'
,
$path
)
==
0
)
&&
!
(
empty
(
$print_mail_link_pos
[
'link'
])
&&
empty
(
$print_mail_link_pos
[
'corner'
])))
{
static
$output
=
FALSE
;
if
(
$output
===
FALSE
)
{
$output
=
TRUE
;
$link
=
print_mail_insert_link
();
if
(
$link
)
{
return
"<span class='print-syslink'>
$link
</span>"
;
}
}
}
}
/**
* Implementation of hook_nodeapi_view().
*/
...
...
@@ -186,6 +166,26 @@ function print_mail_nodeapi_view($node, $teaser) {
}
}
/**
* Implementation of hook_help().
*/
function
print_mail_help
(
$path
,
$arg
)
{
$print_mail_link_pos
=
variable_get
(
'print_mail_link_pos'
,
array
(
PRINT_MAIL_LINK_POS_DEFAULT
=>
PRINT_MAIL_LINK_POS_DEFAULT
));
if
((
preg_match
(
'!^node/!i'
,
$path
)
==
0
)
&&
!
(
empty
(
$print_mail_link_pos
[
'link'
])
&&
empty
(
$print_mail_link_pos
[
'corner'
])))
{
static
$output
=
FALSE
;
if
(
$output
===
FALSE
)
{
$output
=
TRUE
;
$link
=
print_mail_insert_link
();
if
(
$link
)
{
return
"<span class='print-syslink'>
$link
</span>"
;
}
}
}
}
/**
* Implementation of hook_nodeapi_load().
*/
...
...
This diff is collapsed.
Click to expand it.
print_pdf/print_pdf.module
+
30
−
30
View file @
dd30da23
...
...
@@ -145,26 +145,6 @@ function print_pdf_requirements($phase) {
return
$requirements
;
}
/**
* Implementation of hook_help().
*/
function
print_pdf_help
(
$path
,
$arg
)
{
$print_pdf_link_pos
=
variable_get
(
'print_pdf_link_pos'
,
array
(
PRINT_PDF_LINK_POS_DEFAULT
=>
PRINT_PDF_LINK_POS_DEFAULT
));
if
((
preg_match
(
'!^node/!i'
,
$path
)
==
0
)
&&
!
(
empty
(
$print_pdf_link_pos
[
'link'
])
&&
empty
(
$print_pdf_link_pos
[
'corner'
])))
{
static
$output
=
FALSE
;
if
(
$output
===
FALSE
)
{
$output
=
TRUE
;
$link
=
print_pdf_insert_link
();
if
(
$link
)
{
return
"<span class='print-syslink'>
$link
</span>"
;
}
}
}
}
/**
* Implementation of hook_nodeapi_view().
*/
...
...
@@ -226,6 +206,26 @@ function print_pdf_nodeapi_view($node, $teaser) {
}
}
/**
* Implementation of hook_help().
*/
function
print_pdf_help
(
$path
,
$arg
)
{
$print_pdf_link_pos
=
variable_get
(
'print_pdf_link_pos'
,
array
(
PRINT_PDF_LINK_POS_DEFAULT
=>
PRINT_PDF_LINK_POS_DEFAULT
));
if
((
preg_match
(
'!^node/!i'
,
$path
)
==
0
)
&&
!
(
empty
(
$print_pdf_link_pos
[
'link'
])
&&
empty
(
$print_pdf_link_pos
[
'corner'
])))
{
static
$output
=
FALSE
;
if
(
$output
===
FALSE
)
{
$output
=
TRUE
;
$link
=
print_pdf_insert_link
();
if
(
$link
)
{
return
"<span class='print-syslink'>
$link
</span>"
;
}
}
}
}
/**
* Implementation of hook_nodeapi_load().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment