/** * AddBehaviour * * Allows the theme developer to add behavioural modifications to certain elements * used by modules. * * @todo add link to api * @param OnePanelBehaviour $behaviour * @return boolean */ public static function AddBehaviour(OnePanelBehaviour &$behaviour) { // Prepare some log infomation $message = OnePanelDebug::PrepareAddBehaviourOutput($behaviour); $success = OnePanelDebug::Track($message); // Add the behaviour self::$behaviours[] =& $behaviour; $success->Affirm(); return true; }