. */ include_once __DIR__.'/../../core.php'; echo ' '; $hooks = $dbo->fetchArray('SELECT zz_hooks.*, zz_modules.name AS modulo FROM zz_hooks INNER JOIN zz_modules ON zz_hooks.id_module = zz_modules.id 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 '

 

';