public function TMGMTGoogleTranslatorPluginController::isAvailable in TMGMT Translator Google 7
Overrides TMGMTDefaultTranslatorPluginController::isAvailable().
Overrides TMGMTDefaultTranslatorPluginController::isAvailable
File
- ./
tmgmt_google.plugin.inc, line 56 - Provides Google Translator plugin controller.
Class
- TMGMTGoogleTranslatorPluginController
- Google translator plugin controller.
Code
public function isAvailable(TMGMTTranslator $translator) {
if ($translator
->getSetting('api_key')) {
return TRUE;
}
return FALSE;
}