Drupal 7: module to add a simple button in admin menu -
i trying create simple module add together button in admin/config menu. need button run php script on click. far i've browsed dozens tutorials, not able see enabled module in admin/config menu item (even though have used code should redirect node/1
).
here code have used:
function send_reminders_menu() { $items['admin/config/reminders'] = array( 'title' => 'reminders command panel', 'page callback' => 'drupal_goto', 'page arguments' => array('node/1'), 'access arguments' => array('access reminders command panel'), 'weight' => 50, 'type' => menu_local_task, ); homecoming $items;
change menu_local_task
menu_normal_item
.
menu_local_task
expects one-level_up menu router item menu_default_local_task
admin/config
isn't. menu_normal_item
adds normal menu item.
lastly, don't forget clear caches when you've made changes. luck!
drupal module
No comments:
Post a Comment