require_once(DOL_DOCUMENT_ROOT."/core/class/canvas.class.php"); $objcanvas = new Canvas($db,$action); $objcanvas->getCanvas('thirdparty','card',$canvas); // Security check $result = $objcanvas->restrictedArea($user, 'societe', $socid); } else { // Security check $result = restrictedArea($user, 'societe', $socid); } // Instantiate hooks of thirdparty module. Note that conf->hooks_modules contains array array if (is_array($conf->hooks_modules) && !empty($conf->hooks_modules)) { $object->callHooks('thirdpartycard'); } /* * Actions */ $reshook=0; // Hook of actions. After that, reshook is 0 if we need to process standard actions, >0 otherwise. if (! empty($object->hooks)) { foreach($object->hooks as $hook) {