{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Edit a module hook'}{/block} {block name="check-resource"}admin.hook{/block} {block name="check-access"}update{/block} {block name="main-content"}
{loop name="module_hook_edit" type="module_hook" id="$module_hook_id" backend_context="1" lang="$edit_language_id"}
{hook name="module-hook-edit.top" module_hook_id=$module_hook_id}
{intl l='Editing hook for module "%name"' name="{$MODULE_TITLE}"}
{form name="thelia.admin.module-hook.modification"} {include file = "includes/inner-form-toolbar.html" hide_submit_buttons = false page_url = {url path="/admin/module-hook/update/%id" id=$ID} close_url = {url path="/admin/module-hooks"} }
{* Be sure to get the hook ID, even if the form could not be validated *} {form_hidden_fields} {render_form_field field="success_url" value={url path="/admin/module-hooks"}} {if $form_error}
{$form_error_message}
{/if} {render_form_field field="module_id"} {render_form_field field="hook_id"} {render_form_field field="active"}
{custom_render_form_field field='classname'}
{/custom_render_form_field} {custom_render_form_field field='method'}
{/custom_render_form_field} {render_form_field field="templates"}
{/form}
{hook name="module-hook-edit.bottom" module_hook_id=$module_hook_id} {/loop} {elseloop rel="module_hook_edit"}
{intl l="Sorry, module hook ID=%id was not found." id={$module_hook_id}}
{/elseloop}
{/block} {block name="javascript-initialization"}
{/block} {block name="javascript-last-call"} {hook name="module-hook.edit-js" location="module-hook-edit-js" module_hook_id={$module_hook_id} } {/block}