You are here

function tmgmt_source_translatable_item_types in Translation Management Tool 7

Returns an array of translatable item types of a source plugin.

Parameters

$plugin: The machine-readable name of a source plugin.

Return value

array The array of translatable item types.

See also

TMGMTSourcePluginControllerInterface::getItemTypes()

Related topics

4 calls to tmgmt_source_translatable_item_types()
TMGMTDefaultSourceUIController::hook_forms in plugin/tmgmt.ui.source.inc
TMGMTDefaultSourceUIController::hook_menu in plugin/tmgmt.ui.source.inc
tmgmt_node_ui_handler_filter_node_translatable_types::query in sources/node/views/handlers/tmgmt_node_handler_filter_node_translatable_types.inc
Add this filter to the query.
tmgmt_source_is_translatable_item_type in ./tmgmt.module
1 string reference to 'tmgmt_source_translatable_item_types'
TMGMTNodeSourceViewsController::views_data in sources/node/views/tmgmt_node.views.inc
Defines the result for hook_views_data().

File

./tmgmt.module, line 1205
Main module file for the Translation Management module.

Code

function tmgmt_source_translatable_item_types($plugin) {
  $controller = tmgmt_source_plugin_controller($plugin);
  return $controller
    ->getItemTypes();
}