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
Post a Comment