You are here

function wsdata_get_language_plugins in Web Service Data 7

Get the list defined language plugins

Parameters

string $plugin [optional]: Specify a particular plugin to load

Return value

array|boolean Returns an array of plugins or the specificly requested plugin, FALSE othwerwise

1 call to wsdata_get_language_plugins()
wsconfig_type_form in modules/wsconfig/wsconfig_type.admin.inc
Generate the wsconfig type editing form

File

./wsdata.module, line 114
Main module for wsconfig

Code

function wsdata_get_language_plugins($plugin = NULL) {
  $plugins = module_invoke_all('wsdata_language_plugin');
  if (!empty($plugin)) {
    if (array_key_exists($plugin, $plugins)) {
      return $plugins[$plugin];
    }
    else {
      return FALSE;
    }
  }
  return $plugins;
}