Restore correct code: A module decide if standard code is used or not

after running by a return code that is an int 
0=execute standard code, 1=disable standard code

To return a string to show or an array or error codes, this must be done
by setting
$actionclassinstance->results
or
$actionclassinstance->resprints
This commit is contained in:
Laurent Destailleur 2013-01-22 17:43:41 +01:00 committed by Regis Houssin
parent bfe57b21b0
commit d2152a8342
2 changed files with 3 additions and 3 deletions

View File

@ -2482,7 +2482,7 @@ abstract class CommonObject
$parameters=array();
$reshook=$hookmanager->executeHooks('showLinkedObjectBlock',$parameters,$this,$action); // Note that $action and $object may have been modified by hook
if (empty($hookmanager->resPrint))
if (empty($reshook))
{
$num = count($this->linkedObjects);

View File

@ -41,8 +41,8 @@ class HookManager
// Array result
var $resArray=array();
// Printable result (int, string)
var $resPrint;
// Printable result
var $resPrint='';
/**
* Constructor