By Leonardo Sapiras during the GSoC 2011, reviewed, patched, integrated
and commited by ioguix
* @param $object The type of object at the end of the trail.
*/
function getTrail($subject = null) {
- global $lang, $conf, $data, $appName;
+ global $lang, $conf, $data, $appName, $plugin_manager;
$trail = array();
$vars = '';
}
}
+ // Trail hook's place
+ $plugin_functions_parameters = array(
+ 'trail' => &$trail,
+ 'section' => $subject
+ );
+
+ $plugin_manager->do_hook('trail', $plugin_functions_parameters);
+
return $trail;
}
* Attributes
*/
private $plugins_list = array();
- private $available_hooks = array('toplinks', 'tabs' /* wip, more hooks to come in next commits */);
+ private $available_hooks = array('toplinks', 'tabs', 'trail' /* wip, more hooks to come in next commits */);
private $actions = array();
private $hooks = array();