From 41f5c43368136033305eb79445c6cf9dd3875594 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 15 Mar 2018 21:13:19 +0100 Subject: [PATCH] NEW hook getnomurltooltip is replaced with hook getNomUrl more powerfull --- .../template/class/actions_mymodule.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/modulebuilder/template/class/actions_mymodule.class.php b/htdocs/modulebuilder/template/class/actions_mymodule.class.php index e11925f075f..245f85070b3 100644 --- a/htdocs/modulebuilder/template/class/actions_mymodule.class.php +++ b/htdocs/modulebuilder/template/class/actions_mymodule.class.php @@ -63,6 +63,24 @@ class ActionsMyModule $this->db = $db; } + + /** + * Execute action + * + * @param array $parameters Array of parameters + * @param CommonObject $object The object to process (an invoice if you are in invoice module, a propale in propale's module, etc...) + * @param string $action 'add', 'update', 'view' + * @return int <0 if KO, + * =0 if OK but we want to process standard actions too, + * >0 if OK and we want to replace standard actions. + */ + function getNomUrl($parameters,&$object,&$action) + { + global $db,$langs,$conf,$user; + $this->resprints = ''; + return 0; + } + /** * Overloading the doActions function : replacing the parent's function with the one below *