function countries_menu in Countries 7.2
Same name and namespace in other branches
- 8 countries.module \countries_menu()
- 7 countries.module \countries_menu()
Implements hook_menu().
File
- ./
countries.module, line 59 - Defines the field and entity information for countries.
Code
function countries_menu() {
$items = array();
$items['admin/config/regional/countries'] = array(
'title' => 'Countries',
'description' => 'List, edit, or add countries.',
'page callback' => 'countries_admin_overview',
'access arguments' => array(
'administer site configuration',
),
'file' => 'countries.admin.inc',
);
$items['admin/config/regional/countries/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/regional/countries/add'] = array(
'title' => 'Add country',
'description' => 'Admin page to add a country.',
'page callback' => 'countries_admin_page',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_ACTION,
'weight' => 1,
'file' => 'countries.admin.inc',
);
$items['admin/config/regional/countries/import'] = array(
'title' => 'Update countries',
'description' => 'Bulk import countries from the ISO standard.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'countries_admin_import_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_ACTION,
'weight' => 2,
'file' => 'countries.admin.inc',
);
$items['admin/config/regional/countries/%country'] = array(
'title callback' => 'countries_page_title',
'title arguments' => array(
4,
),
'description' => 'Edit a country.',
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'page callback' => 'countries_admin_page',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'countries.admin.inc',
);
$items['admin/config/regional/countries/%country/edit'] = array(
'title' => 'Edit',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/regional/countries/%country/delete'] = array(
'title' => 'Delete country',
'description' => 'Country delete confirmation form.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'countries_admin_delete',
4,
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_VISIBLE_IN_BREADCRUMB,
'file' => 'countries.admin.inc',
);
return $items;
}