You are here

function i18n_test_menu in Internationalization 7

Implements hook_menu().

File

tests/i18n_test.module, line 57
Helper module for testing i18n

Code

function i18n_test_menu() {

  // Required for the i18n_string caching tests.
  $items['tests/i18n/i18n_string_build/%'] = array(
    'title' => 'Load string',
    'access callback' => TRUE,
    'page callback' => 'i18n_string_build',
    'page arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
    'delivery callback' => 'drupal_json_output',
  );
  $items['tests/i18n/i18n_string_build/%/%'] = array(
    'title' => 'Load string',
    'access callback' => TRUE,
    'page callback' => 'i18n_string_build',
    'page arguments' => array(
      3,
      4,
    ),
    'type' => MENU_CALLBACK,
    'delivery callback' => 'drupal_json_output',
  );
  $items['tests/i18n/i18n_string_translation_search/%'] = array(
    'title' => 'Search string translations',
    'access callback' => TRUE,
    'page callback' => 'i18n_string_translation_search',
    'page arguments' => array(
      3,
    ),
    'type' => MENU_CALLBACK,
    'delivery callback' => 'drupal_json_output',
  );
  $items['tests/i18n/i18n_string_translation_search/%/%'] = array(
    'title' => 'Search string translations',
    'access callback' => TRUE,
    'page callback' => 'i18n_string_translation_search',
    'page arguments' => array(
      3,
      4,
    ),
    'type' => MENU_CALLBACK,
    'delivery callback' => 'drupal_json_output',
  );
  return $items;
}