Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 4e237fd705495e1e21ef20696443e053 > files > 1091

bugzilla-5.0.4-3.mga7.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>
Bugzilla::Template::Plugin::Hook</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" title="style" type="text/css" href="../../.././../../../../style.css" media="all" >

</head>
  <body id="pod">
<p class="backlinktop"><b><a name="___top" href="../../../index.html" accesskey="1" title="All Documents">&lt;&lt;</a></b></p>
<h1>Bugzilla::Template::Plugin::Hook</h1>
<div class='indexgroup'>
<ul   class='indexList indexList1'>
  <li class='indexItem indexItem1'><a href='#NAME'>NAME</a>
  <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a>
  <li class='indexItem indexItem1'><a href='#METHODS'>METHODS</a>
  <li class='indexItem indexItem1'><a href='#SEE_ALSO'>SEE ALSO</a>
</ul>
</div>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="NAME"
>NAME</a></h1>

<p>Bugzilla::Template::Plugin::Hook</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="DESCRIPTION"
>DESCRIPTION</a></h1>

<p>Template Toolkit plugin to process hooks added into templates by extensions.</p>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="METHODS"
>METHODS</a></h1>

<dl>
<dt><a name="process"
><b>process</b></a></dt>

<dd>
<dl>
<dt><a name="Description"
><b>Description</b></a></dt>

<dd>
<p>Processes hooks added into templates by extensions.</p>

<dt><a name="Params"
><b>Params</b></a></dt>

<dd>
<dl>
<dt><a name="hook_name"
><code  class="code">hook_name</code></a></dt>

<dd>
<p>The unique name of the template hook.</p>

<dt><a name="template_(optional)"
><code  class="code">template</code> (optional)</a></dt>

<dd>
<p>The path of the calling template.
This is used as a work around to a bug which causes the path to the hook to be incorrect when the hook is called from inside a block.</p>

<p>Example: If the hook <code  class="code">lastrow</code> is added to the template <em  class="code">show-multiple.html.tmpl</em> and it is desired to force the correct template path,
the template hook would be:</p>

<pre  class="code"> [% Hook.process(&#34;lastrow&#34;, &#34;bug/show-multiple.html.tmpl&#34;) %]</pre>
</dd>
</dl>

<dt><a name="Returns"
><b>Returns</b></a></dt>

<dd>
<p>Output from processing template extension.</p>
</dd>
</dl>
</dd>
</dl>

<h1><a class='u' href='#___top' title='click to go to top of document'
name="SEE_ALSO"
>SEE ALSO</a></h1>

<p><a href="../../../Template/Plugin.html" class="podlinkpod"
>Template::Plugin</a></p>

<p><a href="http://wiki.mozilla.org/Bugzilla:Writing_Extensions" class="podlinkurl"
>http://wiki.mozilla.org/Bugzilla:Writing_Extensions</a></p>
<p class="backlinkbottom"><b><a name="___bottom" href="../../../index.html" title="All Documents">&lt;&lt;</a></b></p>

<!-- end doc -->

</body></html>