Posted By

wildpeaks on 04/11/11


Tagged

drupal6


Versions (?)

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.

  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
Posted By: protar on September 30, 2019

For me, https://dltutuapp.com/tutuapp-download/ https://showbox.run/ https://kodi.software/ as of now.

Posted By: protar on September 30, 2019

As of now, https://dltutuapp.com/tutuapp-download/ https://kodi.software/ https://showbox.run/ being on the

You need to login to post a comment.