<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Chris Johnson wrote:
<blockquote
cite="mid9ea8d6030802150111vf3816bdxf8e72ad2450a1e89@mail.gmail.com"
type="cite">
<pre wrap="">Um, array(3)->nid is not valid PHP syntax. Is that what you really meant?
</pre>
</blockquote>
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?<br>
<blockquote
cite="mid9ea8d6030802150111vf3816bdxf8e72ad2450a1e89@mail.gmail.com"
type="cite">
<pre wrap="">
On Fri, Feb 15, 2008 at 9:35 AM, Ron Parker <a class="moz-txt-link-rfc2396E" href="mailto:sysop@scbbs.com"><sysop@scbbs.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
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?
</pre>
</blockquote>
<pre wrap=""><!---->
__________ NOD32 2879 (20080215) Information __________
This message was checked by NOD32 antivirus system.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Ron Parker
Software Creations <a class="moz-txt-link-freetext" href="http://www.scbbs.com">http://www.scbbs.com</a>
Self-Administration Web Site <a class="moz-txt-link-freetext" href="http://saw.scbbs.com">http://saw.scbbs.com</a>
SDSS Subscription Mgmt Service <a class="moz-txt-link-freetext" href="http://sdss.scbbs.com">http://sdss.scbbs.com</a>
Central Ave Dance Ensemble <a class="moz-txt-link-freetext" href="http://www.centralavedance.com">http://www.centralavedance.com</a>
R & B Salsa <a class="moz-txt-link-freetext" href="http://www.randbsalsa.com">http://www.randbsalsa.com</a>
</pre>
</body>
</html>