function media_acquiadam_browser_menu in Media: Acquia DAM 7
Implements hook_menu().
File
- modules/
media_acquiadam_browser/ media_acquiadam_browser.module, line 15
Code
function media_acquiadam_browser_menu() {
$items = [];
$items['admin/content/file/acquiadam'] = [
'title' => 'Acquia DAM',
'page callback' => 'drupal_get_form',
'page arguments' => [
'media_acquiadam_browser_choose_asset_form',
],
'access arguments' => [
'access media acquiadam browser',
],
'file' => 'includes/media_acquiadam_browser.forms.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 100,
];
$items['admin/content/file/acquiadam/saved'] = [
'title' => 'Saved Acquia DAM assets',
'page callback' => 'media_acquiadam_browser_choose_asset_saved_landing_page',
'access arguments' => [
'access media acquiadam browser',
],
'file' => 'includes/media_acquiadam_browser.pages.inc',
'type' => MENU_CALLBACK,
];
$items['dam/%ctools_js/%/%media_acquiadam_asset/info'] = [
'title' => 'Asset information',
'page arguments' => [
3,
1,
],
'page callback' => 'media_acquiadam_browser_info_modal_page',
'load arguments' => [
2,
],
'access callback' => 'media_acquiadam_asset_access',
'access arguments' => [
'view',
3,
],
'theme callback' => 'ajax_base_page_theme',
'file' => 'includes/media_acquiadam_browser.pages.inc',
'type' => MENU_CALLBACK,
];
return $items;
}