NEW hook getnomurltooltip is replaced with hook getNomUrl more powerfull
This commit is contained in:
parent
c962b89495
commit
41f5c43368
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user