<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/en/taxonomy/term/262/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>hook_menu</title>
    <link>http://joetsuihk.com/en/taxonomy/term/262/all</link>
    <description></description>
    <language>en</language>
     <atom:link href="http://joetsuihk.com/en/taxonomy/term/262/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>有關 hook_menu 的 title arguments</title>
    <link>http://joetsuihk.com/en/hook_menu_title_arguments</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;&lt;a href=&quot;http://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_menu/7&quot;&gt;&lt;code&gt;hook_menu&lt;/code&gt;&lt;/a&gt; 中有一個選項是 &lt;code&gt;title arguments&lt;/code&gt;&lt;br /&gt;&lt;code&gt;page arguments&lt;/code&gt; 大家可能用得比較多&lt;br /&gt;
而使用 &lt;code&gt;title arguments&lt;/code&gt; 的機會比較少&lt;br /&gt;
而 API reference 也沒有有關的例子可以參考&lt;br /&gt;
我便約略介紹一下&lt;/p&gt;
&lt;p&gt;首先，有關 title 的參數有三個:&lt;br /&gt;&lt;code&gt;title&lt;/code&gt;，字符，是未經翻譯的標題，會用於 &amp;lt;title&amp;gt; 內，一般的 theme 也會在 content 用 h1 輸出&lt;br /&gt;&lt;code&gt;title callback&lt;/code&gt;，可選參數，預設是 t()，這讓上面的 title 會預設經過翻譯然後輸出，所以上面的 title 不需要使用 t() 包起來&lt;br /&gt;&lt;code&gt;title argument&lt;/code&gt;，可選參數，必需是陣列，例如&lt;code&gt;array(1)&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/hook&quot;&gt;hook&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/en/free_tags/hook_menu&quot;&gt;hook_menu&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/en/free_tags/arguments&quot;&gt;arguments&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;有關 hook_menu 的 title arguments - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/en/hook_menu_title_arguments&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Mon, 17 Dec 2012 13:09:59 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">341 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
