function workbench_media_menu in Workbench Media 7.2
Same name and namespace in other branches
- 7 workbench_media.module \workbench_media_menu()
Implements hook_menu().
Provide a UI for uploading media.
File
- ./
workbench_media.module, line 13 - Workbench Media module file for workbench-specific media features.
Code
function workbench_media_menu() {
$items = array();
$items['admin/workbench/media/add'] = array(
'title' => 'Add Media',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'file_entity_add_upload',
),
'access arguments' => array(
'use workbench_media add form',
),
'file' => 'file_entity.pages.inc',
'file path' => drupal_get_path('module', 'file_entity'),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
);
return $items;
}