You are here

function _tmgmt_plugin_labels in Translation Management Tool 7

Returns an array of labels of all available plugins of a given type with the machine-readable name as the key.

Return value

array An array of the labels of all available plugins.

3 calls to _tmgmt_plugin_labels()
tmgmt_file_format_plugin_labels in translators/file/tmgmt_file.module
Returns an array of file format plugin labels.
tmgmt_source_plugin_labels in ./tmgmt.module
Returns an array of all available source plugins with the labels as values and the machine-readable name as the key.
tmgmt_translator_plugin_labels in ./tmgmt.module
Returns an array of all available translator plugins with the labels as values and the machine-readable name as the key.

File

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

Code

function _tmgmt_plugin_labels($type) {
  $list = array();
  $plugin_info = 'tmgmt_' . $type . '_plugin_info';
  foreach ($plugin_info() as $key => $info) {
    $list[$key] = $info['label'];
  }
  return $list;
}