You are here

function hook_tmgmt_translator_plugin_info in Translation Management Tool 7

Provide information about translator plugins.

See also

TMGMTTestTranslatorPluginController

Related topics

3 functions implement hook_tmgmt_translator_plugin_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

tmgmt_file_tmgmt_translator_plugin_info in translators/file/tmgmt_file.module
Implements hook_tmgmt_translator_plugin_info().
tmgmt_local_tmgmt_translator_plugin_info in translators/tmgmt_local/tmgmt_local.module
Implements hook_tmgmt_translator_plugin_info().
tmgmt_test_tmgmt_translator_plugin_info in tests/tmgmt_test.module
Implements hook_tmgmt_translator_plugin_info().

File

./tmgmt.api.php, line 81
Hooks provided by the Translation Management module.

Code

function hook_tmgmt_translator_plugin_info() {
  return array(
    'test_translator' => array(
      'label' => t('Test translator'),
      'description' => t('Simple translator for testing purposes.'),
      'plugin controller class' => 'TMGMTTestTranslatorPluginController',
      'ui controller class' => 'TMGMTTestTranslatorUIController',
      'default settings' => array(
        'expose_settings' => TRUE,
      ),
      // By default, a translator is automatically created with the default
      // settings. Set auto create to FALSE to prevent this.
      'auto create' => TRUE,
      // If the translator should provide remote languages mappings feature.
      // It defaults to TRUE.
      'map remote languages' => FALSE,
      // Flag defining if job settings are handled by plugin itself.
      // Defaults to FALSE.
      'job settings custom handling' => FALSE,
    ),
  );
}