// Adding general hook helper form and options

This commit is contained in:
fSerny
2012-02-07 15:02:37 +00:00
parent 044b0b1185
commit 5a471b99ea
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}