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