Chris Johnson wrote:
Um, array(3)->nid is not valid PHP syntax. Is that what you really meant?
That's my question. I'm trying to figure out if the wildcard value can be used in such a way. In my example, the wildcard is %node, which is equal to ($node = node_load(arg(3)). array(3) is now equal to $node. So, is there a way to write the equivalant of $node->nid or $node->title?
On Fri, Feb 15, 2008 at 9:35 AM, Ron Parker <sysop@scbbs.com> wrote:
I'm trying to figure out if I can use wildcards in this manner:
<?php $items['node/agenda/list/%node'] = array( 'title callback' => 'node_page_title', 'title arguments' => array(3), 'page callback' => 'agenda_list', 'page arguments' => array(3)->nid, 'access callback' => 'user_access', 'access arguments' => array('view agenda'), 'type' => MENU_CALLBACK ); ?> Since array(3) represents node_load(arg(3)), can I use the statement array(3)->nid for the node id. Or, for that matter, array(3)->type for the node type?
__________ NOD32 2879 (20080215) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
-- Ron Parker Software Creations http://www.scbbs.com Self-Administration Web Site http://saw.scbbs.com SDSS Subscription Mgmt Service http://sdss.scbbs.com Central Ave Dance Ensemble http://www.centralavedance.com R & B Salsa http://www.randbsalsa.com