Passing $totalarray as a parameter to printFieldListFooter Hook's
Sometimes, we need $totalarray to know nbfield or to display some vars in the footer of list.
This commit is contained in:
parent
53522fb8dd
commit
7f540ac6f0
@ -800,7 +800,7 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
|
|
||||||
$parameters = array('arrayfields'=>$arrayfields, 'sql'=>$sql);
|
$parameters = array('arrayfields'=>$arrayfields, 'totalarray' => $totalarray, 'sql'=>$sql);
|
||||||
$reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
print $hookmanager->resPrint;
|
print $hookmanager->resPrint;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user