Last active
February 11, 2016 14:08
-
-
Save gwarnants/64c13183000e0127472b to your computer and use it in GitHub Desktop.
Drupal admin menu shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_menu(). | |
*/ | |
function foobar_menu() { | |
$items['admin/add-image-style'] = array( | |
'title' => 'Shortcut to add image style', | |
'page callback' => 'drupal_goto', | |
'page arguments' => array('/admin/config/media/image-styles/add'), | |
'access callback' => 'user_access', | |
'access arguments' => array(), | |
); | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment