Commit f0e49fdd authored by jcnventura's avatar jcnventura

Use new node_load argument interface

parent f2c4fb21
......@@ -131,7 +131,7 @@ function print_block($op = 'list', $delta = 0, $edit = array()) {
case 0:
$nid = preg_replace('!^node/!', '', $_GET['q']);
if (is_numeric($nid)) {
$node = node_load(array('nid' => $nid));
$node = node_load($nid);
}
else {
$node = NULL;
......@@ -629,7 +629,7 @@ function print_link_allowed($args) {
if (!empty($args['path'])) {
$nid = preg_replace('!^node/!', '', drupal_get_normal_path($args['path']));
if (is_numeric($nid)) {
$args['node'] = node_load(array('nid' => $nid));
$args['node'] = node_load($nid);
}
}
if (!empty($args['node'])) {
......
......@@ -541,7 +541,7 @@ function _print_generate_node($nid, $cid = NULL, $format = PRINT_HTML_FORMAT, $t
global $_print_urls;
// We can take a node id
$node = node_load(array('nid' => $nid));
$node = node_load($nid);
if (!$node) {
// Node not found
drupal_not_found();
......@@ -711,7 +711,7 @@ function _print_generate_path($path, $format = PRINT_HTML_FORMAT, $teaser = FALS
function _print_generate_book($nid, $format = PRINT_HTML_FORMAT, $teaser = FALSE, $message = NULL) {
global $_print_urls;
$node = node_load(array('nid' => $nid));
$node = node_load($nid);
if (!$node) {
// Node not found
drupal_not_found();
......
......@@ -403,7 +403,7 @@ function print_mail_link_allowed($args) {
if (!empty($args['path'])) {
$nid = preg_replace('!^node/!', '', drupal_get_normal_path($args['path']));
if (is_numeric($nid)) {
$args['node'] = node_load(array('nid' => $nid));
$args['node'] = node_load($nid);
}
}
if (!empty($args['node'])) {
......
......@@ -456,7 +456,7 @@ function print_pdf_link_allowed($args) {
if (!empty($args['path'])) {
$nid = preg_replace('!^node/!', '', drupal_get_normal_path($args['path']));
if (is_numeric($nid)) {
$args['node'] = node_load(array('nid' => $nid));
$args['node'] = node_load($nid);
}
}
if (!empty($args['node'])) {
......
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