From 92017b77ab69aae597ec40776e7024f6ebfe05ea Mon Sep 17 00:00:00 2001 From: fSerny Date: Mon, 6 Feb 2012 17:27:20 +0000 Subject: [PATCH] [+] BO : Dynamics hooks in helper form --- .../themes/default/template/controllers/categories/form.tpl | 3 --- admin-dev/themes/default/template/helpers/form/form.tpl | 4 ++++ controllers/admin/AdminCategoriesController.php | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/categories/form.tpl b/admin-dev/themes/default/template/controllers/categories/form.tpl index cf0e9c045..90548c97a 100644 --- a/admin-dev/themes/default/template/controllers/categories/form.tpl +++ b/admin-dev/themes/default/template/controllers/categories/form.tpl @@ -34,7 +34,4 @@ {$input.customer}

{/if} - {if ($input.name == 'module')} - {hook h="displayAdminCategoriesForm"} - {/if} {/block} \ No newline at end of file diff --git a/admin-dev/themes/default/template/helpers/form/form.tpl b/admin-dev/themes/default/template/helpers/form/form.tpl index c4a091ed3..3dfab6b20 100644 --- a/admin-dev/themes/default/template/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/helpers/form/form.tpl @@ -339,6 +339,10 @@ {/if} {/foreach} + {if isset($name_controller)} + {capture name=hookName assign=hookName}display{$name_controller|ucfirst}Form{/capture} + {hook h=$hookName} + {/if} {elseif $key == 'submit'}
$guest_group_information, 'customer' => $default_group_information, 'desc' => $this->l('Mark all groups you want to give access to this category') - ), - array( - 'type' => 'module', - 'name' => 'module' ) ), 'submit' => array(