. */ include_once __DIR__.'/../../core.php'; echo ' '; $hooks = $dbo->fetchArray('SELECT `zz_hooks`.*, `zz_modules_lang`.`name` AS modulo FROM `zz_hooks` INNER JOIN `zz_modules` ON `zz_hooks`.`id_module` = `zz_modules`.`id` LEFT JOIN `zz_modules_lang` ON (`zz_modules`.`id` = `zz_modules_lang`.`id_record` AND `zz_modules_lang`.`id_lang` = '.prepare(setting('Lingua')).') ORDER BY `id_module` ASC, `zz_hooks`.`id` ASC'); $gruppi = collect($hooks)->groupBy('modulo'); foreach ($gruppi as $modulo => $hooks) { echo ' '; foreach ($hooks as $hook) { $class = $hook['enabled'] ? 'success' : 'warning'; $nome_tipo = 'hook'; echo ' '; } } echo ''; echo ' '; echo '
'.tr('Nome').' '.tr('Ultima esecuzione').' '.tr('Stato').'
'.$modulo.'
'.$hook['name'].(!empty($hook['help']) ? ' ' : '').' '.Translator::timestampToLocale($hook['processing_at']).' '; // Possibilità di disabilitare o abilitare il hook if ($hook['enabled']) { echo '
'; } else { echo '
'; } echo '

 

';