Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add a shortcut to "Create Node" at /admin in Drupal 6
* Implementation of hook_menu().
* Add a shortcut to "create node" in the Admin page for users
* that have the permission to create at least one type, in Drupal 6.
function MODULENAME_menu(){
return array(
'admin/content/create' => array(
'title' => 'Create',
'description' => 'Create Nodes',
'access callback' => 'menu_valid_path',
'access arguments' => array(
array('link_path' => 'node/add')
'page callback' => 'drupal_goto',
'page arguments' => array('node/add'),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.