You are here

function tmgmt_google_test_available_languages in TMGMT Translator Google 7

Mok service to get available languages.

1 string reference to 'tmgmt_google_test_available_languages'
tmgmt_google_test_menu in tests/tmgmt_google_test.module
Implements hook_menu().

File

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

Code

function tmgmt_google_test_available_languages() {
  tmgmt_google_test_key_validate();
  $response = array(
    'data' => array(
      'languages' => array(
        array(
          'language' => 'en',
        ),
        array(
          'language' => 'de',
        ),
        array(
          'language' => 'fr',
        ),
      ),
    ),
  );
  drupal_json_output($response);
}