Drupal - bring node form from Create Content > [Node Type] to a custom menu -


at time, i'm able add software node type using node type form in create content > software menu. want place form custom menu. menu:

'software/add' => array(             'title' => 'add software',             'page callback' => '???',             'access callback' => true,         ), 

i'm managed make admin form in custom menu using page callback , system_settings_form. guess must work around page callback, don't know how node type form.

ok, need kind of menu items, code follows:

$items['software/add'] = array(   'title' => 'add software',   'page callback' => 'node_add',   'page arguments' => array('software'),   'access callback' => 'node_access',   'access arguments' => array('create', 'software'),   'file' => 'node.pages.inc',   'file path' => drupal_get_path('module', 'node'), ); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -