| 1 |
<?php |
<?php |
| 2 |
// $Id: views_node.inc,v 1.30.2.18 2007/07/14 19:07:03 merlinofchaos Exp $ |
// $Id: views_node.inc,v 1.30.2.19 2007/07/14 19:30:51 merlinofchaos Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* This include file implements views functionality on behalf of node.module |
* This include file implements views functionality on behalf of node.module |
| 460 |
} |
} |
| 461 |
// Allow modules to change $node->body before viewing. |
// Allow modules to change $node->body before viewing. |
| 462 |
node_invoke_nodeapi($node, 'view', $teaser, TRUE); |
node_invoke_nodeapi($node, 'view', $teaser, TRUE); |
| 463 |
|
|
| 464 |
// Set the proper node part, then unset unused $node part so that a bad |
// Set the proper node part, then unset unused $node part so that a bad |
| 465 |
// theme can not open a security hole. |
// theme can not open a security hole. |
| 466 |
$content = drupal_render($node->content); |
$content = drupal_render($node->content); |
| 831 |
} |
} |
| 832 |
} |
} |
| 833 |
} |
} |
| 834 |
|
|
| 835 |
return views_get_url($view, $args); |
return views_get_url($view, $args); |
| 836 |
} |
} |
| 837 |
|
|
| 851 |
$args[] = $arg; |
$args[] = $arg; |
| 852 |
} |
} |
| 853 |
else if ($argdata['argdefault'] != 1) { |
else if ($argdata['argdefault'] != 1) { |
| 854 |
$args[] = '*'; |
$args[] = $argdata['wildcard']; |
| 855 |
} |
} |
| 856 |
} |
} |
| 857 |
} |
} |
| 858 |
|
|
| 859 |
return $args; |
return $args; |
| 860 |
} |
} |
| 861 |
|
|