You are here

class TMGMTGoogleTranslatorUIController in TMGMT Translator Google 7

Google translator ui controller.

Hierarchy

Expanded class hierarchy of TMGMTGoogleTranslatorUIController

1 string reference to 'TMGMTGoogleTranslatorUIController'
tmgmt_google_tmgmt_translator_plugin_info in ./tmgmt_google.module
Implements hook_tmgmt_translator_plugin_info().

File

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

View source
class TMGMTGoogleTranslatorUIController extends TMGMTDefaultTranslatorUIController {

  /**
   * Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm().
   */
  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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TMGMTDefaultTranslatorUIController::checkoutInfo public function Retrieves information about a translation job. Overrides TMGMTTranslatorUIControllerInterface::checkoutInfo 2
TMGMTDefaultTranslatorUIController::checkoutInfoWrapper public function Provides a simple wrapper for the checkout info fieldset.
TMGMTDefaultTranslatorUIController::checkoutSettingsForm public function Form callback for the checkout settings form. Overrides TMGMTTranslatorUIControllerInterface::checkoutSettingsForm 3
TMGMTDefaultTranslatorUIController::reviewDataItemElement public function Form callback for the data item element form. Overrides TMGMTTranslatorUIControllerInterface::reviewDataItemElement 1
TMGMTDefaultTranslatorUIController::reviewForm public function Form callback for the job item review form. Overrides TMGMTTranslatorUIControllerInterface::reviewForm
TMGMTDefaultTranslatorUIController::reviewFormSubmit public function Submit callback for the job item review form. Overrides TMGMTTranslatorUIControllerInterface::reviewFormSubmit
TMGMTDefaultTranslatorUIController::reviewFormValidate public function Validation callback for the job item review form. Overrides TMGMTTranslatorUIControllerInterface::reviewFormValidate
TMGMTGoogleTranslatorUIController::pluginSettingsForm public function Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm(). Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm
TMGMTPluginBase::$pluginInfo protected property
TMGMTPluginBase::$pluginType protected property
TMGMTPluginBase::pluginInfo public function Returns the info of the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginInfo
TMGMTPluginBase::pluginType public function Returns the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginType
TMGMTPluginBase::__construct public function Constructor. Overrides TMGMTPluginBaseInterface::__construct