function getlocations_tools_menu in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_tools/getlocations_tools.module \getlocations_tools_menu()
Implements hook_menu().
File
- modules/
getlocations_tools/ getlocations_tools.module, line 27 - getlocations_tools.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_tools_menu() {
$items = array();
$items[GETLOCATIONS_ADMIN_PATH . '/export'] = array(
'title' => 'Export',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'getlocations_tools_export_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 8,
);
// opl
if (module_exists('openlayers')) {
$items[GETLOCATIONS_ADMIN_PATH . '/export_opl'] = array(
'title' => 'Export Opl',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'getlocations_tools_export_opl_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
}
$items[GETLOCATIONS_ADMIN_PATH . '/import'] = array(
'title' => 'Import',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'getlocations_tools_import_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 12,
);
return $items;
}