function sweaver_get_plugin in Sweaver 7
Same name and namespace in other branches
- 6 sweaver.module \sweaver_get_plugin()
Get all plugins or a plugin handler. Deprecated. Only here for backward compatibility.
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.
File
- ./
sweaver.module, line 348 - 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);
}
}