Commit 730a39bb authored by jcnventura's avatar jcnventura

Remove some more notices

parent 24332e75
......@@ -194,6 +194,9 @@ function print_nodeapi(&$node, $op = 'view', $teaser, $page) {
if ($allowed_type === PRINT_ALLOW_BOOK_LINK) {
$path = PRINT_PATH .'/book/export/html/'. $node->nid;
}
else {
$path = NULL;
}
$link = print_insert_link($path);
$node->content['print_link'] = array(
'#value' => "<span class='print-link'>$link</span>",
......@@ -366,6 +369,9 @@ function print_insert_link($path = NULL) {
$query = NULL;
}
}
else {
$query = NULL;
}
$format = theme('print_format_link');
return '<span class="print">'. l($format['text'], $path, array('attributes' => $format['attributes'], 'query' => $query, 'absolute' => TRUE, 'html' => $format['html'])) .'</span>';
}
......
......@@ -135,6 +135,9 @@ function print_mail_nodeapi(&$node, $op = 'view', $teaser, $page) {
if ($allowed_type === PRINT_ALLOW_BOOK_LINK) {
$path = PRINTMAIL_PATH .'/book/export/html/'. $node->nid;
}
else {
$path = NULL;
}
$link = print_mail_insert_link($path);
$node->content['print_mail_link'] = array(
'#value' => "<span class='print-link'>$link</span>",
......@@ -203,6 +206,9 @@ function print_mail_insert_link($path = NULL) {
$query = NULL;
}
}
else {
$query = NULL;
}
$format = theme('print_mail_format_link');
return '<span class="print_mail">'. l($format['text'], $path, array('attributes' => $format['attributes'], 'query' => $query, 'absolute' => TRUE, 'html' => $format['html'])) .'</span>';
}
......
......@@ -173,6 +173,9 @@ function print_pdf_nodeapi(&$node, $op = 'view', $teaser, $page) {
if ($allowed_type === PRINT_ALLOW_BOOK_LINK) {
$path = PRINTPDF_PATH .'/book/export/html/'. $node->nid;
}
else {
$path = NULL;
}
$link = print_pdf_insert_link($path);
$node->content['print_pdf_link'] = array(
'#value' => "<span class='print-link'>$link</span>",
......@@ -242,6 +245,9 @@ function print_pdf_insert_link($path = NULL) {
$query = NULL;
}
}
else {
$query = NULL;
}
$format = theme('print_pdf_format_link');
return '<span class="print_pdf">'. l($format['text'], $path, array('attributes' => $format['attributes'], 'query' => $query, 'absolute' => TRUE, 'html' => $format['html'])) .'</span>';
}
......
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