You are here

function tmgmt_google_test_menu in TMGMT Translator Google 7

Implements hook_menu().

File

tests/tmgmt_google_test.module, line 12
Main bootstrap file of the tmgmt_google_test module.

Code

function tmgmt_google_test_menu() {
  $menu = array();
  $menu['tmgmt_google_test/languages'] = array(
    'title' => 'Get available languages',
    'page callback' => 'tmgmt_google_test_available_languages',
    'access callback' => TRUE,
    'file' => 'tmgmt_google_test.module',
    'type' => MENU_CALLBACK,
  );
  $menu['tmgmt_google_test'] = array(
    'title' => 'Translate',
    'page callback' => 'tmgmt_google_test_translate',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $menu['tmgmt_google_test_http_request'] = array(
    'title' => 'Test http request',
    'page callback' => 'tmgmt_google_test_http_request',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'weight' => 0,
  );
  return $menu;
}