<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/zh-hant/taxonomy/term/216/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>hook_nodeapi</title>
    <link>http://joetsuihk.com/zh-hant/taxonomy/term/216/all</link>
    <description></description>
    <language>zh-hant</language>
     <atom:link href="http://joetsuihk.com/zh-hant/taxonomy/term/216/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Rules 7.x 模組 101</title>
    <link>http://joetsuihk.com/zh-hant/rules_7x_%E6%A8%A1%E7%B5%84_101</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://www.drupal.org/project/rules&quot; target=&quot;_blank&quot;&gt;Rules&lt;/a&gt; 模組在 6.x 的時代功能上已經很強大&lt;br /&gt;
但使用者介面一直很不友善,&lt;br /&gt;
rules rule set, actions, trigger, workflow, workflow-ng 等等使人很眼花撩亂&lt;br /&gt;
令很多使用者, 甚至開發人員, 包括我, 對 rules 模組卻步&lt;br /&gt;
情願自建模組, 編寫代碼, 使用方便的 hooks 完成用戶需求&lt;br /&gt;
例如, node 有一個電郵欄位, 每一次 save 的時候都送出一封電郵到 node 的電郵欄位&lt;br /&gt;
便可以使用 hook_nodeapi() (D6)&lt;/p&gt;
&lt;p&gt;而在 7.x 中, rules 模組的使用者介面得到很大的改善&lt;br /&gt;
一般的使用者也可以使用&lt;br /&gt;
進階的 AND OR 邏輯也只需要簡單的學習就可以了&lt;br /&gt;
直接令自建模組的機會大大減少, 例如下圖:&lt;br /&gt;&lt;img src=&quot;http://www.joetsuihk.com/files/rules101-overview.PNG&quot; /&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/development&quot;&gt;Development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/tutorial&quot;&gt;tutorial&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/57&quot;&gt;rules&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/drupal7x&quot;&gt;Drupal 7.x&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/free_tags/hooknodeapi&quot;&gt;hook_nodeapi&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;Rules 7.x 模組 101 - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/zh-hant/rules_7x_%E6%A8%A1%E7%B5%84_101&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, 06 Feb 2012 11:34:55 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">272 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
