All pastes #338619 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-03 16:13 UTC
rendered paste body
<xar:if condition="!empty($hooks)">
   <xar:foreach in="$hooks" key="$item">
      <xar:if condition="$item eq 'firstspecificmodulehere'">
         <xar:set name="firstseperatedhookitem">$hooks[$item]</xar:set>
      <xar:elseif condition="$item eq 'secondspecificmodulehere'" />
         <xar:set name="secondseperatedhookitem">$hooks[$item]</xar:set>
      <xar:elseif condition="$item eq 'thirdspecificmodulehere'" />
         <xar:set name="thirdseperatedhookitem">$hooks[$item]</xar:set>
      <xar:else />
         <xar:set name="otherhookeditems">$hooks[$item]</xar:set>
      </xar:if>
   </xar:foreach>   
</xar:if>