Quoting Lluís <[email protected]>:
On Mon, Sep 7, 2009 at 8:06 PM, John Fiala<[email protected]> wrote:
It's not that hard, actually. Just change the 'page arguments' to
include the value 1. That means that the value in the 1st segment of
the url will be passed in as the argument there, and since we (like
good computer scientists) start counting at 0, that means the %-value
will be passed to the node_add function.
Its not that easy, node_add() expects just the 'node-type', to it
don't use any other argument. Thats why I am using $_GET['q']
I want to use my parameter in myNodeType_form($node), which is called
by node_add
The "Druapl Way"(tm) is to use http://api.drupal.org/api/function/arg instead.
--
Earnie
-- http://r-feed.com/ -- http://for-my-kids.com/
-- http://www.4offer.biz/ -- http://give-me-an-offer.com/