<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>天生我才必有用 &#187; drupal</title>
	<atom:link href="http://ray.imiddle.net/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://ray.imiddle.net</link>
	<description>狂人的成长史</description>
	<lastBuildDate>Thu, 17 Nov 2011 01:01:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Drupal 测试邮件发送</title>
		<link>http://ray.imiddle.net/2011/03/drupal-debug-email-problems/</link>
		<comments>http://ray.imiddle.net/2011/03/drupal-debug-email-problems/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 07:57:24 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=669</guid>
		<description><![CDATA[Reroute Email模块可以帮助你进行邮件发送的测试。 This module intercepts all outgoing emails from a Drupal site and reroutes them to a predefined configurable email address. This is useful in case where you do not want email sent from a Drupal site to reach the users. For example, if you copy a live site to a test site for the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://drupal.org/project/reroute_email" target="_blank">Reroute Email</a>模块可以帮助你进行邮件发送的测试。</p>
<p>This module intercepts all outgoing emails from a Drupal site and reroutes them to a predefined configurable email address.</p>
<p>This is useful in case where you do not want email sent from a Drupal  site to reach the users. For example, if you copy a live site to a test  site for the purpose of development, and you do not want any email sent  to real users of the original site. Or you want to check the emails  sent for uniform formatting, footers, &#8230;etc.</p>
<p>This is also a good demonstration of what <a rel="nofollow" href="http://api.drupal.org/api/5/function/hook_mail_alter">hook_mail_alter()</a>, available in Drupal 5.x and later, can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2011/03/drupal-debug-email-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7常用theme hooks</title>
		<link>http://ray.imiddle.net/2011/03/drupal7-common-theme-hooks/</link>
		<comments>http://ray.imiddle.net/2011/03/drupal7-common-theme-hooks/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 01:45:39 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Drupal7]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=657</guid>
		<description><![CDATA[file_link Returns HTML for a link to a file. html_tag Returns HTML for a generic HTML tag with attributes. This can often be too generic a theme hook to use, but is really useful for adding a tag to the of a document or for theming a tag inside a render element. image Returns HTML [...]]]></description>
			<content:encoded><![CDATA[<p><strong>file_link</strong><br />
Returns HTML for a link to a file.</p>
<p><strong>html_tag</strong><br />
Returns HTML for a generic HTML tag with attributes. This can often be too generic a theme hook to use, but is really useful for adding a tag to the  of a document or for theming a tag inside a render element.</p>
<p><strong>image </strong><br />
Returns HTML for an image. image_style Returns HTML for an image using a specific image style.</p>
<p><strong>item_list</strong><br />
Returns HTML for a list of items which can optionally be nested.</p>
<p><strong>links </strong><br />
Returns HTML for a list of links (cannot be nested).</p>
<p><strong>more_link </strong><br />
Returns HTML for a more link, often used on blocks.</p>
<p><strong>pager </strong><br />
Returns HTML for a pager query element, a list of pages for result sets too long for one page.</p>
<p><strong>progress_bar</strong><br />
Returns HTML for an indicator showing a task&#8217;s progress.</p>
<p><strong>table </strong><br />
Returns HTML for a table.</p>
<p><strong>username </strong><br />
Returns HTML for a username.</p>
<p><strong>user_list</strong><br />
Returns HTML for a list of users.</p>
<p><strong>user_picture</strong><br />
Returns HTML for a picture configured for the user&#8217;s account.</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2011/03/drupal7-common-theme-hooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal t函数</title>
		<link>http://ray.imiddle.net/2011/02/drupal-t-function/</link>
		<comments>http://ray.imiddle.net/2011/02/drupal-t-function/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 02:24:23 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=648</guid>
		<description><![CDATA[Drupal supports translation is largely through the t() function. The function takes an optional second argument。 1 2 $values = array&#40;'@user' =&#62; $username&#41;; print t&#40;'Welcome, @user', $values&#41;; If the placeholder begins with at sign @, then before it inserts the value, Drupal sanitizes the value using its internal check_plain() function. 1 2 $values = array&#40;'!url' [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal supports translation is largely through the <strong>t()</strong> function.</p>
<p>The function takes an optional second argument。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'@user'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$username</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span> t<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Welcome, @user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If the placeholder begins with at sign @, then before it inserts the value, Drupal sanitizes  the value using its internal check_plain() function.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'!url'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://example.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span> t<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'The website can be found at !url'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If the placeholder begins with exclamation mark !,  then it will be entered with no escaping. We can do this safely only because we already know the value of URL.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%color'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'blue'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span> t<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'My favorite color is %color.'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>If the placeholder begins with the percent sign %, it tells Drupal  to escape the code and to mark it as emphasized. (The content will be embedded in the <strong>em</strong> tag)</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2011/02/drupal-t-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 常用模块</title>
		<link>http://ray.imiddle.net/2009/05/drupal-userful-module/</link>
		<comments>http://ray.imiddle.net/2009/05/drupal-userful-module/#comments</comments>
		<pubDate>Sun, 17 May 2009 09:39:43 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[网站设计]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=556</guid>
		<description><![CDATA[1. 内容编辑 1.1 BUEditor （http://drupal.org/project/bueditor） 1.2 Textile (http://drupal.org/project/textile) 使用自定义的标签来转换成Html文本 1.3 Wysiwyg API (http://drupal.org/project/wysiwyg) 一款所见即所得(WYSIWYG)编辑器。 1.4 FCKeditor (http://drupal.org/project/fckeditor) 另一款所见即所得的编辑器，同时也是较早被Drupal支持，所以维护和支持都不错。]]></description>
			<content:encoded><![CDATA[<h3><strong>1. </strong>内容编辑</h3>
<h4><strong>1.1 </strong>BUEditor （<a href="http://drupal.org/project/bueditor" target="_blank">http://drupal.org/project/bueditor</a>）</h4>
<p><img class="alignnone size-full wp-image-558" title="bueditor1" src="http://ray.imiddle.net/wp-content/uploads/2009/05/bueditor1.png" alt="bueditor1" width="491" height="326" /><strong><br />
</strong></p>
<p><strong>1.2 </strong>Textile (<a href="http://drupal.org/project/textile" target="_blank">http://drupal.org/project/textile</a>)</p>
<p style="padding-left: 30px;">使用自定义的标签来转换成Html文本</p>
<p><strong>1.3</strong> Wysiwyg API (<a href="http://drupal.org/project/wysiwyghttp://" target="_blank">http://drupal.org/project/wysiwyg</a>)</p>
<p style="padding-left: 30px;">一款所见即所得(WYSIWYG)编辑器。</p>
<p class="title withtabs node-type-project_project"><strong>1.4</strong> FCKeditor (<a href="http://drupal.org/project/fckeditor" target="_blank">http://drupal.org/project/fckeditor</a>)</p>
<p class="title withtabs node-type-project_project" style="padding-left: 30px;">另一款所见即所得的编辑器，同时也是较早被Drupal支持，所以维护和支持都不错。</p>
<p class="title withtabs node-type-project_project">
<p class="title withtabs node-type-project_project" style="padding-left: 30px;">
<p class="title withtabs node-type-project_project" style="padding-left: 30px;">
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/05/drupal-userful-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

