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
Save to your folder(s)

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

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


Copy this code and paste it in your HTML
  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. }

URL: http://www.wildpeaks.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.