You are here

function countries_configuration_menu in Countries 8

Same name and namespace in other branches
  1. 7.2 modules/countries_configuration/countries_configuration.module \countries_configuration_menu()

Implements hook_menu().

File

modules/countries_configuration/countries_configuration.module, line 16
Provides the base framework for integration for storing country specific data on behalf of other modules.

Code

function countries_configuration_menu() {
  $items = array();
  $config_options = countries_configuration_options();
  foreach ($config_options as $name => $info) {
    $items['admin/config/regional/countries/%country/' . $name] = array(
      'title' => $info['title'],
      'description' => 'Country configuration form for ' . $info['title'],
      'type' => MENU_LOCAL_TASK,
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'countries_configuration_options_form',
        4,
        $name,
      ),
      'access arguments' => array(
        'administer site configuration',
      ),
      'file' => 'countries_configuration.admin.inc',
    );
  }
  return $items;
}