<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/zh-hant/taxonomy/term/80/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>introduction</title>
    <link>http://joetsuihk.com/zh-hant/taxonomy/term/80/all</link>
    <description></description>
    <language>zh-hant</language>
     <atom:link href="http://joetsuihk.com/zh-hant/taxonomy/term/80/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Module development - introduction [module].info</title>
    <link>http://joetsuihk.com/zh-hant/module_development_introduction_moduleinfo</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;要自己建立一個 module, 先要跟從 Drupal 的一些規定&lt;br /&gt;
令 Drupal 知道有這麼一個新的 module 存在&lt;/p&gt;
&lt;p&gt;假設要寫的是一個名為 my_module 的模組 (真正的模組只可以使用 a 到 z 和 _ )&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;先到 sites/all/modules 建立一個資金夾, 名為 my_module&lt;/li&gt;
&lt;li&gt;在資料夾之內建立兩個檔案
&lt;ol&gt;&lt;li&gt;my_module.info (模組的基本資料)&lt;/li&gt;
&lt;li&gt;my_module.module (模組的 php code)&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;my_module.info: (只介紹最基本的要求, 以後再補上非必要的設定)&lt;br /&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;/zh-hant/free_tags/module_development&quot;&gt;module development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/introduction&quot;&gt;introduction&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;Module development - introduction [module].info - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/zh-hant/module_development_introduction_moduleinfo&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>Thu, 18 Feb 2010 13:36:00 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">148 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
