// Adding general hook helper form and options

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13075 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fSerny
2012-02-07 15:02:37 +00:00
parent 07186ff3b9
commit c3cd9cf40f
2 changed files with 9 additions and 0 deletions
@@ -339,6 +339,7 @@
</div> </div>
{/if} {/if}
{/foreach} {/foreach}
{hook h='displayAdminForm'}
{if isset($name_controller)} {if isset($name_controller)}
{capture name=hookName assign=hookName}display{$name_controller|ucfirst}Form{/capture} {capture name=hookName assign=hookName}display{$name_controller|ucfirst}Form{/capture}
{hook h=$hookName} {hook h=$hookName}
@@ -208,6 +208,14 @@
{if isset($categoryData['bottom'])}{$categoryData['bottom']}{/if} {if isset($categoryData['bottom'])}{$categoryData['bottom']}{/if}
</fieldset><br /> </fieldset><br />
{/foreach} {/foreach}
{hook h='displayAdminOptions'}
{if isset($name_controller)}
{capture name=hookName assign=hookName}display{$name_controller|ucfirst}Options{/capture}
{hook h=$hookName}
{elseif isset($smarty.get.controller)}
{capture name=hookName assign=hookName}display{$smarty.get.controller|ucfirst|htmlentities}Options{/capture}
{hook h=$hookName}
{/if}
</form> </form>
{/block} {/block}
{block name="after"}{/block} {block name="after"}{/block}