function video_menu in Video 6.4
Same name and namespace in other branches
- 5 video.module \video_menu()
- 6.5 video.module \video_menu()
- 6 video.module \video_menu()
- 6.2 video.module \video_menu()
- 6.3 video.module \video_menu()
- 7.2 video.module \video_menu()
Implementation of hook_menu().
File
- ./
video.module, line 48 - video.module
Code
function video_menu() {
$items = array();
$items['admin/settings/video'] = array(
'title' => 'Video',
'description' => 'Configure different aspects of the video module and its plugins',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_general_admin_settings',
),
'file' => 'video.admin.inc',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/settings/video/general'] = array(
'title' => 'General',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/settings/video/players'] = array(
'title' => 'Players',
'description' => 'Configure your player settings for each video extension.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_players_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/settings/video/transcoders'] = array(
'title' => 'Transcoders',
'description' => 'Configure your transcoder to convert your videos or extra thumbnails.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_transcoder_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/settings/video/presets'] = array(
'title' => 'Presets',
'description' => 'Configure your transcoder presets to convert your videos.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_preset_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 3,
);
$items['admin/settings/video/metadata'] = array(
'title' => 'Metadata',
'description' => 'Configure your metadata settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_metadata_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 4,
);
$items['admin/settings/video/filesystem'] = array(
'title' => 'File System',
'description' => 'Configure your file system settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_filesystem_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 5,
);
$items['admin/settings/video/cron'] = array(
'title' => 'Cron Settings',
'description' => 'Configure your cron settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_cron_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 6,
);
return $items;
}