function video_menu in Video 6.5
Same name and namespace in other branches
- 5 video.module \video_menu()
- 6 video.module \video_menu()
- 6.2 video.module \video_menu()
- 6.3 video.module \video_menu()
- 6.4 video.module \video_menu()
- 7.2 video.module \video_menu()
Implementation of hook_menu().
File
- ./
video.module, line 54 - Main file of the 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/presets/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 1,
);
$items['admin/settings/video/presets/add'] = array(
'title' => 'Add preset',
'description' => 'Add a new video conversion preset.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_admin_preset',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
$items['admin/settings/video/presets/%video_preset/configure'] = array(
'title' => 'Configure preset',
'description' => 'Configure a preset for the current transcoder.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_admin_preset_configure',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/settings/video/presets/%video_preset/edit'] = array(
'title' => 'Edit preset',
'description' => 'Edit a transcoding preset.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_admin_preset',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/settings/video/presets/%video_preset/delete'] = array(
'title' => 'Delete preset',
'description' => 'Delete a transcoding preset.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'video_admin_preset_delete',
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'video.admin.inc',
'type' => MENU_CALLBACK,
);
$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;
}