disableLog(); // Vérification des permissions $f->isAccredited(array("lien_module","lien_module_modifier","lien_module_ajouter"), "OR"); // Récupération des valeurs envoyées $f->set_submitted_value(); // Données $module_name = $f->get_submitted_get_value('module') ?? null; $module_name = html_entity_decode($module_name, ENT_QUOTES); $module_name_escaped = $f->db->escapeSimple($module_name); $f->log(__METHOD__, "module name: ".var_export($module_name, true)); $object_name = $f->get_submitted_get_value('object_name') ?? null; $object_name = html_entity_decode($object_name, ENT_QUOTES); $object_name_escaped = $f->db->escapeSimple($object_name); $f->log(__METHOD__, "object name: ".var_export($object_name, true)); $object_id = $f->get_submitted_get_value('object_id') ?? null; $object_id = html_entity_decode($object_id, ENT_QUOTES); $object_id_escaped = $f->db->escapeSimple($object_id); $f->log(__METHOD__, "object id: ".var_export($object_id, true)); $declencheurs = array(); // instancie le module $module_inst = $f->module_manager->get_module_instance($module_name); if (! empty($module_inst)) { $declencheurs = $module_inst->get_supported_hooks(true); } echo json_encode($declencheurs);