function mp3player_menu in MP3 Player 7.2
Same name and namespace in other branches
- 6.2 mp3player.module \mp3player_menu()
- 6 mp3player.module \mp3player_menu()
Implementation of hook_menu().
File
- ./
mp3player.module, line 60 - mp3player main module file.
Code
function mp3player_menu() {
$items = array();
$items['admin/config/media/mp3player'] = array(
'title' => 'MP3 Player',
'page callback' => 'mp3player_player_list',
'access arguments' => array(
'administer mp3player',
),
);
$items['admin/config/media/mp3player/player-list'] = array(
'title' => 'Player List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/media/mp3player/add-new-player'] = array(
'title' => 'Add new player',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mp3player_player_form',
),
'access arguments' => array(
'administer mp3player',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/media/mp3player/global-settings'] = array(
'title' => 'Global Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mp3player_settings_form',
),
'access arguments' => array(
'administer mp3player',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/media/mp3player/player/%'] = array(
'title callback' => 'mp3player_title_callback',
'title arguments' => array(
'Edit player: !name',
5,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mp3player_player_form',
5,
),
'access arguments' => array(
'administer mp3player',
),
'type' => MENU_CALLBACK,
);
$items['admin/config/media/mp3player/player/%/delete'] = array(
'title callback' => 'mp3player_title_callback',
'title arguments' => array(
'Delete player: !name',
5,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'mp3player_player_delete',
5,
),
'access arguments' => array(
'administer mp3player',
),
'type' => MENU_CALLBACK,
);
return $items;
}