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:
parent
bfe57b21b0
commit
d2152a8342
@ -2482,7 +2482,7 @@ abstract class CommonObject
|
|||||||
$parameters=array();
|
$parameters=array();
|
||||||
$reshook=$hookmanager->executeHooks('showLinkedObjectBlock',$parameters,$this,$action); // Note that $action and $object may have been modified by hook
|
$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);
|
$num = count($this->linkedObjects);
|
||||||
|
|
||||||
|
|||||||
@ -41,8 +41,8 @@ class HookManager
|
|||||||
|
|
||||||
// Array result
|
// Array result
|
||||||
var $resArray=array();
|
var $resArray=array();
|
||||||
// Printable result (int, string)
|
// Printable result
|
||||||
var $resPrint;
|
var $resPrint='';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user