function bynder_menu in Bynder 7
Implements hook_menu().
File
- ./
bynder.module, line 75
Code
function bynder_menu() {
$items = array();
$items['admin/config/media/bynder'] = array(
'title' => 'Bynder Settings',
'description' => 'Configuration for media bynder module',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bynder_form',
),
'access arguments' => array(
'administer media bynder',
),
'file' => 'includes/bynder.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['bynder-oauth'] = array(
'title' => 'Init oauth authentication',
'description' => 'Init oauth authentication',
'page callback' => 'bynder_oauth_login',
'access arguments' => array(
'administer media bynder',
),
'type' => MENU_NORMAL_ITEM,
);
$items['media/add/bynder'] = array(
'title' => 'Add media from Bynder',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bynder_add',
),
'access arguments' => array(
'administer media bynder',
),
'type' => MENU_LOCAL_ACTION,
'file' => 'includes/bynder.admin.inc',
);
$items['admin/content/media/add/bynder'] = $items['media/add/bynder'];
$items['admin/content/media/add/bynder/upload'] = array(
'title' => 'Upload assets to Bynder',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bynder_upload',
),
'access arguments' => array(
'administer media bynder',
),
'type' => MENU_LOCAL_ACTION,
);
$items['bynder/upload/process'] = array(
'title' => 'Process uploaded files',
'page callback' => 'bynder_upload_process_files',
'access arguments' => array(
'administer media bynder',
),
'type' => MENU_LOCAL_ACTION,
);
return $items;
}