You are here

function i18n_path_menu in Internationalization 7

Implements hook_menu()

File

i18n_path/i18n_path.module, line 11
Internationalization (i18n) module - Path translation

Code

function i18n_path_menu() {
  $items['admin/config/regional/i18n_translation/path'] = array(
    'title' => 'Paths',
    'description' => 'Path translation.',
    'page callback' => 'i18n_path_admin_overview',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n_path.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/config/regional/i18n_translation/path/list'] = array(
    'title' => 'Paths',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/regional/i18n_translation/path/add'] = array(
    'title' => 'Add path translation',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_path_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n_path.admin.inc',
    'type' => MENU_LOCAL_ACTION,
    'parent' => 'admin/config/regional/i18n_translation',
  );
  $items['admin/config/regional/i18n_translation/path/edit/%i18n_path_translation_set'] = array(
    'title' => 'Edit path translation',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_path_admin_form',
      6,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n_path.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
  );
  $items['admin/config/regional/i18n_translation/path/delete/%i18n_path_translation_set'] = array(
    'title' => 'Delete path translation',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_translation_set_delete_confirm',
      6,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n_path.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
  );
  return $items;
}