function httprl_menu in HTTP Parallel Request & Threading Library 6
Same name and namespace in other branches
- 7 httprl.module \httprl_menu()
Implements hook_menu().
File
- ./
httprl.module, line 170 - HTTP Parallel Request Library module.
Code
function httprl_menu() {
$items = array();
// Admin page.
if (defined('VERSION') && substr(VERSION, 0, 1) >= 7) {
$config_url = 'admin/config/development/httprl';
}
else {
$config_url = 'admin/settings/httprl';
}
$items[$config_url] = array(
'title' => 'HTTPRL',
'description' => 'Configure HTTPRL settings.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'httprl_admin_settings_form',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'httprl.admin.inc',
);
// Async Function Callback.
$items['httprl_async_function_callback'] = array(
'title' => 'HTTPRL',
'page callback' => 'httprl_async_page',
'access callback' => TRUE,
'description' => 'URL for async function workers.',
'type' => MENU_CALLBACK,
'file' => 'httprl.async.inc',
);
return $items;
}