function computing_menu in Drupal Computing 7.2
Implements hook_menu().
File
- ./
computing.module, line 30
Code
function computing_menu() {
$items = array();
$items[COMPUTING_MODULE_ADMIN_PATH] = array(
'title' => 'Computing',
'description' => 'Drupal Computing module overview page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'computing_overview_form',
),
'access arguments' => array(
'administer computing module',
),
'file' => 'computing.admin.inc',
);
$items[COMPUTING_MODULE_ADMIN_PATH . '/overview'] = array(
'type' => MENU_DEFAULT_LOCAL_TASK,
'title' => 'Overview',
'weight' => -10,
);
$items[COMPUTING_MODULE_ADMIN_PATH . '/list'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Command Console',
'description' => 'Submit a command in the form of a computing record for remote agent to process.',
'page callback' => 'computing_list_command_page',
'access arguments' => array(
'administer computing records',
),
'file' => 'computing.admin.inc',
'weight' => -9,
);
$items[COMPUTING_MODULE_ADMIN_PATH . "/add/%/%"] = array(
'type' => MENU_CALLBACK,
'title' => 'Add Command Form',
'description' => 'The form for each command to accept user input.',
'page callback' => 'computing_add_command',
'page arguments' => array(
5,
6,
),
'access arguments' => array(
'administer computing records',
),
'file' => 'computing.admin.inc',
);
return $items;
}