<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 28 Sep 2006, at 6:00 PM, Derek Wright wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">where [function] is a string describing the action this page will perform, and [id] is either an int (project nid) or string (project name), why should i have to register this as 2 separate menu items (one with a %d and the other with a %s)?<SPAN class="Apple-converted-space">  </SPAN>they're both going to be identical in every other respect, and unless i'm insane, the callback function for both items will be a single function that just checks "is_numeric(arg(1))" and does the right thing depending on what kind of argument it is.</FONT></P> </BLOCKQUOTE></DIV>Yeah. we decided that a page callback could just do if (!is_numeric) { drupal_page_not_found(); }<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>that's completely acceptable imo</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>