function lti_tool_provider_menu in LTI Tool Provider 7
Implements hook_menu().
File
- ./
lti_tool_provider.module, line 78 - lti_tool_provider hook implementations and support functions.
Code
function lti_tool_provider_menu() {
$items = array();
$items['admin/config/lti-tool-provider'] = array(
'title' => 'LTI Tool Provider',
'description' => 'Administer the LTI Tool Provider module.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/lti-tool-provider/lti-tool-consumers'] = array(
'title' => 'LTI Tool Consumers',
'description' => 'Administer LTI Tool Consumers.',
'page callback' => 'lti_tool_provider_consumers_admin',
'page arguments' => array(
'lti_tool_provider_settings',
),
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'lti_tool_provider.admin.inc',
'weight' => -7,
);
$items['lti_tool_provider_consumer/%lti_tool_provider_consumer'] = array(
'title' => 'LTI Tool Consumer',
'description' => 'View/Edit/Delete an LTI Tool Consumer.',
'page callback' => 'lti_tool_provider_consumer_view',
'page arguments' => array(
1,
'full',
),
'access callback' => 'lti_tool_provider_consumer_access',
'access arguments' => array(
'view',
1,
),
'file' => 'lti_tool_provider.admin.inc',
'type' => MENU_CALLBACK,
);
$items['lti_tool_provider_consumer/%lti_tool_provider_consumer/view'] = array(
'title' => 'View',
'description' => 'View an LTI Tool Consumer.',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['lti_tool_provider_consumer/%lti_tool_provider_consumer/edit'] = array(
'title' => 'Edit',
'description' => 'Edit an LTI Tool Consumer.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lti_tool_provider_consumer_form',
1,
),
'access arguments' => array(
'administer lti_tool_provider module',
),
'type' => MENU_LOCAL_TASK,
'file' => 'lti_tool_provider.admin.inc',
);
$items['lti_tool_provider_consumer/%lti_tool_provider_consumer/delete'] = array(
'title' => 'Delete',
'description' => 'Delete an LTI Tool Consumer.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lti_tool_provider_consumer_confirm_delete_form',
1,
),
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'lti_tool_provider.admin.inc',
);
$items['lti_tool_provider_consumer/add'] = array(
'title' => 'Add LTI Consumer',
'description' => 'Add an LTI Tool Consumer.',
'page callback' => 'lti_tool_provider_consumer_add',
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'lti_tool_provider.admin.inc',
'type' => MENU_CALLBACK,
);
$items['admin/config/lti-tool-provider/user-attributes'] = array(
'title' => 'User Attributes',
'description' => 'Configure LTI context to user attribute mapping.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lti_tool_provider_user_attributes',
),
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'lti_tool_provider.admin.inc',
'weight' => -6,
);
$items['admin/config/lti-tool-provider/global-roles'] = array(
'title' => 'Global Roles',
'description' => 'Configure LTI context to global role mapping.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'lti_tool_provider_global_roles',
),
'access arguments' => array(
'administer lti_tool_provider module',
),
'file' => 'lti_tool_provider.admin.inc',
'weight' => -5,
);
$items['admin/config/lti-tool-provider/info'] = array(
'title' => 'View LTI Information',
'description' => 'View all the LTI context variables.',
'page callback' => 'lti_tool_provider_info',
'access callback' => 'lti_tool_provider_context_access',
'access arguments' => array(
'view lti info',
),
'file' => 'lti_tool_provider.operations.inc',
'weight' => -3,
);
$items['lti'] = array(
'title' => 'LTI',
'page callback' => 'lti_tool_provider_launch',
'access callback' => TRUE,
'file' => 'lti_tool_provider.operations.inc',
'type' => MENU_CALLBACK,
);
$items['lti-tool-provider/return'] = array(
'title' => 'Return to LMS',
'title callback' => 'lti_tool_provider_return_title',
'page callback' => 'lti_tool_provider_return',
'access callback' => 'lti_tool_provider_context_access',
'access arguments' => array(
'access content',
),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'user-menu',
'file' => 'lti_tool_provider.operations.inc',
);
$items['lti-tool-provider/home'] = array(
'title' => 'Home',
'title callback' => 'lti_tool_provider_home_title',
'page callback' => 'lti_tool_provider_home',
'access callback' => 'lti_tool_provider_context_access',
'access arguments' => array(
'access content',
),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'user-menu',
'file' => 'lti_tool_provider.operations.inc',
);
$items['lti-tool-provider/info'] = array(
'title' => 'LTI Info',
'description' => 'View all the LTI context variables.',
'page callback' => 'lti_tool_provider_info',
'access callback' => 'lti_tool_provider_context_access',
'access arguments' => array(
'view lti info',
),
'type' => MENU_NORMAL_ITEM,
'menu_name' => 'navigation',
'file' => 'lti_tool_provider.operations.inc',
);
return $items;
}