function _crumbs_load_plugins in Crumbs, the Breadcrumbs suite 6.2
3 calls to _crumbs_load_plugins()
File
- ./
crumbs.plugin_engine.inc, line 28
Code
function _crumbs_load_plugins() {
foreach (array(
'crumbs',
'menu',
'forum',
'views_ui',
'og',
'clickpath',
'taxonomy',
'path',
'pathauto',
'nodereference',
) as $module) {
if (module_exists($module)) {
module_load_include('inc', 'crumbs', 'plugins/crumbs.' . $module);
}
}
$plugins = array();
foreach (module_implements('crumbs_plugins') as $module) {
$function = $module . '_crumbs_plugins';
$module_plugins = $function();
if (is_array($module_plugins)) {
foreach ($module_plugins as $key => $plugin) {
$plugins[$module . '.' . $key] = $plugin;
}
}
else {
$plugins[$module] = $module_plugins;
}
}
return $plugins;
}