function crumbs_InjectedAPI_hookCrumbsPlugins::multiPlugin in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 lib/InjectedAPI/hookCrumbsPlugins.php \crumbs_InjectedAPI_hookCrumbsPlugins::multiPlugin()
Register a "Multi" plugin. That is, a plugin that defines more than one rule.
Parameters
string|null $key: Rule key, relative to module name.
crumbs_MultiPlugin|null $plugin: Plugin object. Needs to implement crumbs_MultiPlugin. Or NULL, to have the plugin object automatically created based on a class name guessed from the $key parameter and the module name.
Throws
Exception
File
- lib/
InjectedAPI/ hookCrumbsPlugins.php, line 210
Class
- crumbs_InjectedAPI_hookCrumbsPlugins
- API object to be used as an argument for hook_crumbs_plugins() This is a sandbox class, currently not used..
Code
function multiPlugin($key = NULL, crumbs_MultiPlugin $plugin = NULL) {
$this
->addPluginByType($plugin, $key, NULL, TRUE);
}