You are here

function tmgmt_google_test_key_validate in TMGMT Translator Google 7

Key validator helper.

2 calls to tmgmt_google_test_key_validate()
tmgmt_google_test_available_languages in tests/tmgmt_google_test.module
Mok service to get available languages.
tmgmt_google_test_translate in tests/tmgmt_google_test.module
Mok service to translate request.

File

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

Code

function tmgmt_google_test_key_validate() {
  if ($_GET['key'] != 'correct key') {
    tmgmt_google_test_trigger_response_error('usageLimits', 'keyInvalid', 'Bad Request');
  }
}