function tmgmt_source_ui_controller in Translation Management Tool 7
Get the ui controller class for a given source plugin.
Parameters
$plugin: (Optional) The machine-readable name of a source plugin.
Return value
TMGMTSourceUIControllerInterface The ui controller object for the given source plugin or an array containing all available source ui controller objects if no plugin name was given.
Related topics
9 calls to tmgmt_source_ui_controller()
- tmgmt_ui_forms in ui/
tmgmt_ui.module - Implements hook_forms().
- tmgmt_ui_menu in ui/
tmgmt_ui.module - Implements hook_menu().
- tmgmt_ui_source_overview_form in ui/
tmgmt_ui.module - Form callback for the source overview form.
- tmgmt_ui_source_overview_form_submit in ui/
tmgmt_ui.module - Submit callback for the source overview form.
- tmgmt_ui_source_overview_form_validate in ui/
tmgmt_ui.module - Validation callback for the source overview form.
File
- ./
tmgmt.module, line 1164 - Main module file for the Translation Management module.
Code
function tmgmt_source_ui_controller($plugin = NULL) {
return _tmgmt_plugin_controller('source', $plugin, 'ui', 'TMGMTDefaultSourceUIController');
}