El sistema Hooks: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 37: Line 37:
     *  @return      void  
     *  @return      void  
     */  
     */  
     function doActions($parameters, $object, $action)  
     function doActions($parameters, &$object, &$action, $hookmanager)  
     {  
     {  
         print_r($parameters);  
         print_r($parameters);  
Line 47: Line 47:
           // do something only for the context 'somecontext'
           // do something only for the context 'somecontext'
         }
         }
        $this->results=array('myreturn'=>$myvalue)
        $this->resprints='A text to show';
        return 0;
     }
     }
}  
}  

Navigation menu