| 1 |
<?php |
<?php |
| 2 |
// $Id: comment.views_default.inc,v 1.6 2008/06/10 21:30:43 merlinofchaos Exp $ |
// $Id: views_plugin_argument_default_node.inc,v 1.1 2008/09/03 19:21:29 merlinofchaos Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Contains the node from URL argument default plugin. |
* Contains the node from URL argument default plugin. |
| 7 |
|
|
| 8 |
/** |
/** |
| 9 |
* Default argument plugin to extract a node via menu_get_object |
* Default argument plugin to extract a node via menu_get_object |
| 10 |
|
* |
| 11 |
|
* This plugin actually has no options so it odes not need to do a great deal. |
| 12 |
*/ |
*/ |
| 13 |
class views_plugin_argument_default_node extends views_plugin_argument_default { |
class views_plugin_argument_default_node extends views_plugin_argument_default { |
|
function argument_form(&$form, &$form_state) { |
|
|
} |
|
|
|
|
| 14 |
function get_argument() { |
function get_argument() { |
| 15 |
foreach (range(1, 3) as $i) { |
foreach (range(1, 3) as $i) { |
| 16 |
$node = menu_get_object('node', $i); |
$node = menu_get_object('node', $i); |