I am trying to create a simple module that add a button in the admin/config menu. I need the button to run a php script on click. So far I've browsed dozens tutorials, but I am not able even to see the enabled module in admin/config menu as an item (even though I have used code which should just redirect to node/1).
Here is the code I have used:
function send_reminders_menu() {
$items['admin/config/reminders'] = array(
'title' => 'Reminders Control Panel',
'page callback' => 'drupal_goto',
'page arguments' => array('node/1'),
'access arguments' => array('access reminders control panel'),
'weight' => 50,
'type' => MENU_LOCAL_TASK,
);
return $items;