Skip to content

Commit

Permalink
Merge pull request #8165 from atm-quentin/6.0
Browse files Browse the repository at this point in the history
NEW doActions on categorycard
  • Loading branch information
eldy committed Feb 12, 2018
2 parents c7f7fe4 + 6fb08dc commit 5512e27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/categories/viewcat.php
Expand Up @@ -67,13 +67,14 @@
$extralabels = $extrafields->fetch_name_optionals_label($object->table_element);

// Initialize technical object to manage hooks. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('categorycard'));
$hookmanager->initHooks(array('categorycard','globalcard'));


/*
* Actions
*/

$parameters=array();
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
// Remove element from category
if ($id > 0 && $removeelem > 0)
{
Expand Down

0 comments on commit 5512e27

Please sign in to comment.