<?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>RubberNeck Designs</title>
	<atom:link href="http://www.rubberneckdesigns.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubberneckdesigns.com</link>
	<description>Drupal Web Developer Notes &#38; Sharing</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DRUPAL 7: How to Expose a Field in Views</title>
		<link>http://www.rubberneckdesigns.com/ajax-web-design/drupal-7-how-to-expose-a-field-in-views/</link>
		<comments>http://www.rubberneckdesigns.com/ajax-web-design/drupal-7-how-to-expose-a-field-in-views/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 00:28:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Drupal 6 & Drupal 7]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=588</guid>
		<description><![CDATA[The other day when trying to expose a Filter criteria in a view of the Views module 7.x-3.1, I was frustrated by the fact that it would not function despite my best efforts. After triple checking my set up and reading a lot of documentation, there was no fix. Finally, after digging deep into some [...]]]></description>
			<content:encoded><![CDATA[<p>The other day when trying to expose a Filter criteria in a view of the Views module 7.x-3.1, I was frustrated by the fact that it would not function despite my best efforts. After triple checking my set up and reading a lot of documentation, there was no fix. Finally, after digging deep into some threads by a person having the same frustration with Views in Drupal 7 and exposed filters, I found the simple, although illusive, solution.</p>
<p>In the VIEWS UI, open the &#8220;ADVANCED&#8221; section and look under the &#8220;OTHER&#8221; subsection. Find the item &#8220;Use AJAX&#8221; and set the value to yes. I know, I know, (pause, make face) &#8211; right? Well, the guy on the thread that helped me complained enough about it so I&#8217;ll just keep my mouth shut.</p>
<p>I hope that if you were having this problem you found my post faster than I found that thread.  : )</p>
<p>As, always, feel free to comment and make suggestions.</p>
<p><a href="http://www.rubberneckdesigns.com/wp-content/uploads/2012/01/Screen-shot-2012-01-30-at-12.13.51-PM.png"><img src="http://www.rubberneckdesigns.com/wp-content/uploads/2012/01/Screen-shot-2012-01-30-at-12.13.51-PM.png" alt="select yes for use ajax" title="Views UI Advances Section" width="349" height="488" class="alignright size-full wp-image-589" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/ajax-web-design/drupal-7-how-to-expose-a-field-in-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 Calendar New Interface Set Up (in Views)</title>
		<link>http://www.rubberneckdesigns.com/drupal-6-drupal-7/drupal-7-calendar-new-interface-set-up-in-views/</link>
		<comments>http://www.rubberneckdesigns.com/drupal-6-drupal-7/drupal-7-calendar-new-interface-set-up-in-views/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 14:34:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal 6 & Drupal 7]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=586</guid>
		<description><![CDATA[I found this very helpful video by Arlin Sandbulte on the Drupal Calendar version 7.3 configuration (Calendar 7.x-3.x-dev). The interface on this Calendar is quite different than what is shown in other slightly older videos. The new video for Drupal 7 Calendar New Interface Set Up.]]></description>
			<content:encoded><![CDATA[<p>I found this very helpful video by Arlin Sandbulte on the<br />
Drupal Calendar version 7.3 configuration (Calendar 7.x-3.x-dev).</p>
<p>The interface on this Calendar is quite different than what is shown in other slightly older videos.</p>
<p>The new video for <a href="http://vimeo.com/26853285" title="Drupal 7 Calendar Views Interface">Drupal 7 Calendar New Interface Set U</a>p. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/drupal-6-drupal-7/drupal-7-calendar-new-interface-set-up-in-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS: How to Change Screen Shot Save Folder</title>
		<link>http://www.rubberneckdesigns.com/how-to/mac-os-how-to-change-screen-shot-save-folder/</link>
		<comments>http://www.rubberneckdesigns.com/how-to/mac-os-how-to-change-screen-shot-save-folder/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 16:19:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=560</guid>
		<description><![CDATA[First of all, a big &#8220;thank you&#8221; to the author at snowleopardtips.net who wrote &#8220;Everything you need to know about customizing screen captures&#8220;! This very helpful article cut through the chase and made changing the screen shot folder easy. OK, so here is the &#8220;How To&#8221;: 1) open your terminal and enter the following line. [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, a big &#8220;thank you&#8221; to the author at snowleopardtips.net who wrote &#8220;<a href="http://snowleopardtips.net/tips/everything-you-need-to-know-about-screen-captures.html">Everything you need to know about customizing screen captures</a>&#8220;! This very helpful article cut through the chase and made changing the screen shot folder easy.</p>
<p>OK, so here is the &#8220;How To&#8221;:</p>
<p>1) open your terminal and enter the following line. Note:The default location for screenshots is ~/Desktop.</p>

<div class="wp_syntax"><div class="code"><pre class="linux" style="font-family:monospace;">    defaults write com.apple.screencapture location &lt;your new path ie ~/screenshots&gt;</pre></div></div>

<p>2) Reset the System UI Server so you can see the change.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    killall SystemUIServer</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/how-to/mac-os-how-to-change-screen-shot-save-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5: How to Make a datalist for a Form Field Input Element</title>
		<link>http://www.rubberneckdesigns.com/usability/html5-how-to-make-a-datalist-for-a-form-field-input-element/</link>
		<comments>http://www.rubberneckdesigns.com/usability/html5-how-to-make-a-datalist-for-a-form-field-input-element/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 18:16:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[User Iterface Design]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=544</guid>
		<description><![CDATA[Isn’t it nice when web developers make it easy for end users to fill out a form? One way to make for a pleasant user experience is to offer suggestions on a form’s input field. HTML5 now has a cool feature that makes this easier for the developers too! The HTML5 datalist element provides an [...]]]></description>
			<content:encoded><![CDATA[<p>Isn’t it nice when web developers make it easy for end users to fill out a form? One way to make for a pleasant user experience is to offer suggestions on a form’s input field. HTML5 now has a cool feature that makes this easier for the developers too!</p>
<p>The HTML5 datalist element provides an &#8220;autocomplete&#8221; feature on form elements.  With it, you can provide a list of predefined options to the user as they input data.</p>
<p>Now, when a user is entering some text into a text field, a list can drop down with pre-filled values for them to choose from.</p>
<p><strong>How to Make a datalist for a Form Field Input Element</strong><br />
The datalist tag was introduced in HTML 5.</p>
<p>Use the ID of the datalist tag to associate it with the appropriate input.<br />
For example, if the datalist tag has an id=&#8221;myDataList&#8221;, then the list attribute of the input element will look like this: list=&#8221;myDataList&#8221;.</p>
<p>You can fill the datalist element by nesting option tags inside the datalist tag. Here is an example of the code for the HTML5 datalist element:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
</pre></td><td class="code"><pre class="html5" style="font-family:monospace;">&lt;p&gt;
&lt;label&gt;
  Enter your favorite Star Trek character:&lt;br /&gt;
&lt;input type=&quot;text&quot; name=&quot;favCharacter&quot; list=&quot;myDataList&quot;&gt;
&lt;datalist id=&quot;myDataList&quot;&gt;
 &lt;option value=&quot;Captain Kirk&quot;&gt;
 &lt;option value=&quot;Spock&quot;&gt;
 &lt;option value=&quot;Bones&quot;&gt;
 &lt;option value=&quot;Scotty&quot;&gt;
 &lt;option value=&quot;Sulu&quot;&gt;
 &lt;option value=&quot;Chekov&quot;&gt;
 &lt;option value=&quot;Uhura&quot;&gt;
 &lt;option value=&quot;Jean-Luc Picard&quot;&gt;
 &lt;option value=&quot;Data&quot;&gt;
 &lt;option value=&quot;Geordi La Forge&quot;&gt;
 &lt;option value=&quot;Worf&quot;&gt;
&lt;/datalist&gt;
&lt;/label&gt;
&lt;/p&gt;</pre></td></tr></table></div>

<p>
<label><br />
  Enter your favorite Star Trek character:</p>
<input type="text" name="favCharacter" list="myDataList">
<datalist id="myDataList"></p>
<option value="Captain Kirk">
<option value="Spock">
<option value="Bones">
<option value="Scotty">
<option value="Sulu">
<option value="Chekov">
<option value="Uhura">
<option value="Jean-Luc Picard">
<option value="Data">
<option value="Geordi La Forge">
<option value="Worf">
</datalist><br />
</label>
</p>
<p>OK, so now you know. Go be nice to your users with the HTML5 <datalist> tag!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/usability/html5-how-to-make-a-datalist-for-a-form-field-input-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git: Understanding how to use GIT</title>
		<link>http://www.rubberneckdesigns.com/web-design/git-understanding-how-to-use-git/</link>
		<comments>http://www.rubberneckdesigns.com/web-design/git-understanding-how-to-use-git/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 22:18:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=537</guid>
		<description><![CDATA[An excellent read about GIT and how to use it: &#8220;A successful Git branching model&#8221; on a blog named nvie.com maintained by Vincent Driessen Great article, Vincent, thanks!]]></description>
			<content:encoded><![CDATA[<p>An excellent read about GIT and how to use it: &#8220;<a href="http://nvie.com/posts/a-successful-git-branching-model/" title="A successful Git branching model">A successful Git branching model</a>&#8221; on a blog named nvie.com maintained by Vincent Driessen<br />
<img alt="How to use GIT" src="http://nvie.com/img/2009/12/Screen-shot-2009-12-24-at-11.32.03.png" title="Git" class="aligncenter" width="611" height="815" /><br />
Great article, Vincent, thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/web-design/git-understanding-how-to-use-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3: Drop Shadow on an Image</title>
		<link>http://www.rubberneckdesigns.com/css/css3-drop-shadow-on-an-image/</link>
		<comments>http://www.rubberneckdesigns.com/css/css3-drop-shadow-on-an-image/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 23:27:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=526</guid>
		<description><![CDATA[Drop shadows are a nice way to add dimension to a site. Creating them used to be a real task. Combining multiple divs and floats and trickery with CSS that were basically hacks. Not to mention how difficult it was to accomplish creating shadows programmaticlly. Well, making a drop shadow on an image is easy [...]]]></description>
			<content:encoded><![CDATA[<p>Drop shadows are a nice way to add dimension to a site. Creating them used to be a real task. Combining multiple divs and floats and trickery with CSS that were basically hacks. Not to mention how difficult it was to accomplish creating shadows programmaticlly. Well, making a drop shadow on an image is easy now thanks to CSS3!</p>
<p>Enter the box-shadow element! The box-shadow element is supported in IE9+, Firefox 4, Chrome, Opera, and Safari 5.1.1. The syntax of the box-shadow CSS3 element is as follows:</p>
<p><em>box-shadow: h-shadow v-shadow blur spread color inset;</em></p>
<p>The box-shadow element is a comma separated list of properties that effect the position and size and color and even the opacity of the shadow. Note the inset perimeter. That controls wether the shadow is inside of or outside of the object getting the shadow.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>23
24
25
26
27
28
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&nbsp;
<span style="color: #6666ff;">.image-framer</span> img <span style="color: #00AA00;">&#123;</span>
border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* box-shadow: h-shadow v-shadow blur spread color inset;*/</span>
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span>  <span style="color: #933;">3px</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.rubberneckdesigns.com/wp-content/uploads/2012/01/Screen-shot-2012-01-04-at-5.20.08-PM1.png"><img src="http://www.rubberneckdesigns.com/wp-content/uploads/2012/01/Screen-shot-2012-01-04-at-5.20.08-PM1.png" alt="CSS3 image drop shadwo" title="CSS3 image drop shadwo" width="245" height="153" class="alignnone size-full wp-image-530" /></a></p>
<p>The first to parameters control the horizontal and vertical position of the shadow.</p>
<p>Next is the optional blur distance measure followed by the optional spread (or size) of the shadow.</p>
<p>The next paramiter is the color parameter. Here is where you can use the new CSS3 rgba(0, 0, 0, 0.5) element. With the rgba(0, 0, 0, 0.5) element you can control the opacity as well. Or you could use the color number here if you like without opacity.</p>
<p>OK, well, enough talk. Go try it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/css/css3-drop-shadow-on-an-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal: Load a Function Based on URL (wildcard loaders)</title>
		<link>http://www.rubberneckdesigns.com/web-design/drupal-load-a-function-based-on-url-wildcard-loaders/</link>
		<comments>http://www.rubberneckdesigns.com/web-design/drupal-load-a-function-based-on-url-wildcard-loaders/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 15:10:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=519</guid>
		<description><![CDATA[Drupal sites often use wildcards in their URL. In Drupal, this is accomplished in the hook_menu() function. In the hook_menu() function, the URL is defined as the key of the $item array. The wildcard value is represented by the token, % (percent sign). But did you know the % can proceed the name of a [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal sites often use wildcards in their URL. In Drupal, this is accomplished in the hook_menu() function. In the hook_menu() function, the URL is defined as the key of the $item array. The wildcard value is represented by the token, % (percent sign). But did you know the % can proceed the name of a callback function? Drupal automatically &#8220;knows&#8221; to look for the callback function you call out. There is a bit of a trick to it, though. Note in the example that there is &#8216;my_function&#8217;  immediately after the wildcard (%). That would be the call to the callback function. The little trickiness is that you need to define the function in your module suffixed with the word &#8216;_load&#8217;.  The function you define as my_function_load( $nid ), also needs to have an argument of $nid. Pretty easy, huh? Drupal will &#8220;know&#8221; that the wildcard (%) is a token representing the parameter ($nid) for the function.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #339933;">...</span> some code <span style="color: #339933;">...</span>
	<span style="color: #000088;">$items</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'node/%my_function/someplace'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'My Ttitle'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'page callback'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mymodule_page'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'page arguments'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #339933;">...</span> some code <span style="color: #339933;">...</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Menu loader callback. Load a webform node if the given nid is a webform.
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> my_function_load<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nid</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #339933;">....</span> <span style="color: #b1b100;">do</span> some stuff here <span style="color: #339933;">...</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$node</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/web-design/drupal-load-a-function-based-on-url-wildcard-loaders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure URL Handling with Drupal</title>
		<link>http://www.rubberneckdesigns.com/drupal-6-drupal-7/secure-url-handling-with-drupal/</link>
		<comments>http://www.rubberneckdesigns.com/drupal-6-drupal-7/secure-url-handling-with-drupal/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 14:29:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal 6 & Drupal 7]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Security]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=496</guid>
		<description><![CDATA[In most cases dynamic data in forms is handled by the forms API which does a pretty good job of keeping it clean. Since the variables in hook_menu() for example are picked up as a % sign and then translated into a callback array, they are &#8220;cleansed&#8221; as they are passed through the Drupal Core [...]]]></description>
			<content:encoded><![CDATA[<p>In most cases dynamic data in forms is handled by the forms API which does a pretty good job of keeping it clean. Since the variables in hook_menu() for example are picked up as a % sign and then translated into a callback array, they are &#8220;cleansed&#8221; as they are passed through the Drupal Core code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>345
346
347
348
349
350
351
352
353
354
355
356
357
358
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> hook_menu<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #339933;">...</span> some code
&nbsp;
  <span style="color: #000088;">$items</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'my-module/%/edit'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'page callback'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'mymodule_abc_edit'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'page arguments'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
more code <span style="color: #339933;">...</span>
&nbsp;
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$items</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>On the other hand, there may be times when you you really need to pass dynamic data as a $_GET variable that is tacked onto an URL. In this case you need to pass the code through the <a href="http://co.php.net/manual/en/function.urlencode.php" title="urlencode()">urlencode()</a> function.</p>
<p>When you are passing a user submitted URL in a hyperlink, rather than using <a href="http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/check_plain/7" title="check_plain()">check_plain()</a>, the Drupal documentation says to use <a href="http://co.php.net/manual/en/function.urlencode.php" title="urlencode()">urlencode()</a> instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/drupal-6-drupal-7/secure-url-handling-with-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Access the Database from hook_form_submit() Function</title>
		<link>http://www.rubberneckdesigns.com/drupal-6-drupal-7/how-to-access-the-database-from-hook_form_submit-function/</link>
		<comments>http://www.rubberneckdesigns.com/drupal-6-drupal-7/how-to-access-the-database-from-hook_form_submit-function/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 14:28:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal 6 & Drupal 7]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=412</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/drupal-6-drupal-7/how-to-access-the-database-from-hook_form_submit-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get The Calling Function</title>
		<link>http://www.rubberneckdesigns.com/ajax-web-design/get-the-calling-function/</link>
		<comments>http://www.rubberneckdesigns.com/ajax-web-design/get-the-calling-function/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 13:44:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[Drupal 6 & Drupal 7]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.rubberneckdesigns.com/?p=481</guid>
		<description><![CDATA[Knowing which PHP function call the code we are working on can give us the clues we need for de-bugging a script. Getting the calling function is easy in PHP, thanks to the debug_backtrace() function. Just put the following code wherever in your script you need to know what function is calling the part you [...]]]></description>
			<content:encoded><![CDATA[<p>Knowing which PHP function call the code we are working on can give us the clues we need for de-bugging a script.<br />
 Getting the calling function is easy in PHP, thanks to the <a href="http://php.net/manual/en/function.debug-backtrace.php">debug_backtrace() function</a>. </p>
<p>Just put the following code wherever in your script you need to know what function is calling the part you are working on.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>45
46
47
48
49
50
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>php<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000088;">$backtrace</span> <span style="color: #339933;">=</span> <span style="color: #990000;">debug_backtrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span> <span style="color: #0000ff;">&quot;The function that just called this code is &lt;strong&gt;&quot;</span> <span style="color: #339933;">.</span><span style="color: #000088;">$backtrace</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'function'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;strong&gt;.&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>php<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>This will output something like this:</p>
<blockquote><p>The function that just called this code is <strong>DrawWidget</strong>.</p></blockquote>
<p>Where <strong>DrawWidget</strong> is the name of the function.</p>
<p>I hope this comes in handy for someone. Thanks for visiting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rubberneckdesigns.com/ajax-web-design/get-the-calling-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

