function scald_menu in Scald: Media Management made easy 6
Same name and namespace in other branches
- 7 scald.module \scald_menu()
Implementation of hook_menu().
File
- ./
scald.module, line 2659
Code
function scald_menu() {
$items = array();
$items['admin/content/scald'] = array(
'title' => 'Scald',
'description' => 'Manage Scald Atoms, Types, Contexts, and their associated settings.',
'page callback' => 'scald_admin_dashboard',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/content/scald/dashboard'] = array(
'title' => 'Providers',
'weight' => -99,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/content/scald/register/%'] = array(
'title' => 'Re-Registering Scald Provider',
'page callback' => 'scald_admin_provider_reregister',
'page arguments' => array(
4,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/content/scald/types'] = array(
'title' => 'Types',
'weight' => -80,
'page callback' => 'scald_admin_types',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/atoms'] = array(
'title' => 'Atoms',
'weight' => -60,
'page callback' => 'scald_admin_atoms',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/contexts'] = array(
'title' => 'Contexts',
'weight' => -40,
'page callback' => 'scald_admin_contexts',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/transcoders'] = array(
'title' => 'Transcoders',
'weight' => -20,
'page callback' => 'scald_admin_transcoders',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/relationships'] = array(
'title' => 'Relationships',
'weight' => 0,
'page callback' => 'scald_admin_relationships',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/actions'] = array(
'title' => 'Actions',
'weight' => 20,
'page callback' => 'scald_admin_actions',
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scald/settings'] = array(
'title' => 'Settings',
'weight' => 20,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scald_settings_form',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer scald',
),
'file' => 'scald.admin.inc',
'type' => MENU_LOCAL_TASK,
);
// @@@TODO: Implement various Action callback paths (e.g. /scald/actions/action/SID
// @@@TODO: Implement a bewildering array of admin options
return $items;
}