function sweaver_get_plugin in Sweaver 6
Same name and namespace in other branches
- 7 sweaver.module \sweaver_get_plugin()
Get all plugins or a plugin handler.
Parameters
$plugin_name: The name of the plugin.
$enabled: Whether the plugin is enabled or not.
Return value
Either a list of (enabled) plugins or a(n) (enabled) loaded plugin class.
Deprecated
Only here for backward compatibility.
File
- ./
sweaver.module, line 274 - Sweaver functions.
Code
function sweaver_get_plugin($plugin_name = NULL, $enabled = FALSE) {
$sweaver = Sweaver::get_instance();
if ($plugin_name == NULL) {
return $sweaver
->get_plugins_registry($enabled);
}
else {
return $sweaver
->get_plugin($plugin_name, $enabled);
}
}