You are here

public function TMGMTGoogleTranslatorUIController::pluginSettingsForm in TMGMT Translator Google 7

Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm().

Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm

File

./tmgmt_google.ui.inc, line 16
Provides Google Translator ui controller.

Class

TMGMTGoogleTranslatorUIController
Google translator ui controller.

Code

public function pluginSettingsForm($form, &$form_state, TMGMTTranslator $translator, $busy = FALSE) {
  $form['api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Google API key'),
    '#default_value' => $translator
      ->getSetting('api_key'),
    '#description' => t('Please enter your Google API key or visit <a href="@url">Google APIs console</a> to create new one.', array(
      '@url' => 'https://code.google.com/apis/console',
    )),
  );
  return parent::pluginSettingsForm($form, $form_state, $translator);
}