Posted By

wildpeaks on 04/11/11


Tagged


Versions (?)

Last Edited at 04/11/11 09:40pm

Viewed 6 times

Drupal 6: Add a shortcut to \"create node\" in the Admin page for users that have the permission to create at least one type


/ Published in: PHP

URL: http://www.wildpeaks.com

**Important: this snipplet has moved to Github.**

- [Add a shortcut to "Create Node" at /admin in Drupal 6](https://gist.github.com/1973253)

  1. /**
  2.  * Implementation of hook_menu().
  3.  */
  4. function MODULENAME_menu(){
  5. return array(
  6. 'admin/content/create' => array(
  7. 'title' => 'Create',
  8. 'description' => 'Create contents',
  9. 'access callback' => 'menu_valid_path',
  10. 'access arguments' => array(
  11. array('link_path' => 'node/add')
  12. ),
  13. 'page callback' => 'drupal_goto',
  14. 'page arguments' => array('node/add'),
  15. )
  16. );
  17. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.