[% USE JSON; WRAPPER 'master_templates/master.tmpl' theme="yui"; app_key = 'manage_hooks' -%] [% PROCESS '_ajaxapp_styles.tmpl' -%] [% PROCESS '_ajaxapp_header.tmpl' -%] [% null = locale.set_context_html %]
[% locale.maketext('This interface is used to manage hooks that already exist on your server. For information on how to add hooks, what can be hooked into, and how to write hooks, please see the documentation at [output,url,_1,target,_blank].','https://go.cpanel.net/standardhooksdocs') %]
[% locale.maketext('Individual hooks are always sorted in execution order. You can reorder hooks using the up/down arrows on the left side of each hook’s table row.') %]
| [% locale.maketext('Event/Hook') %] | [% locale.maketext('Stage') %] | [% locale.maketext('Description/Notes') %] | [% locale.maketext('Attributes') %] | [% locale.maketext('Actions') %] | |
|---|---|---|---|---|---|
| ▼ | [% evt_stgs.event FILTER html -%] | [% stg_acts.stage FILTER html -%] | [% stg_acts.description FILTER html -%] | [% IF stg_acts.attributes.blocking -%] [% ELSE -%] [% END -%] | [%# TODO: Remove this before merge -%] [% IF 0 && stg_acts.actions.size > 1 -%] [% locale.maketext('Reorder Hooks') %] | [% END -%]
| [% IF stg_acts.actions.size > 1 -%] [% END -%] [% action.hook FILTER html -%] | [% action.notes FILTER html -%] | [% IF action.enabled -%] [% ELSE -%] [% END -%] [% IF action.escalateprivs -%] [% ELSE -%] [% END -%] [% IF action.check -%] [% ELSE -%] [% END -%] [% IF action.rollback -%] [% ELSE -%] [% END -%] | [% locale.maketext('Details') %] [% action.enabled ? locale.maketext('Disable') : locale.maketext('Enable') %] [% locale.maketext('Delete') %] | ||