<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://drupalbin.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>&#039;s Recent Posts</title>
 <link>http://drupalbin.com/recent/%2A</link>
 <description>List of recently submitted code.</description>
 <language>en</language>
<item>
 <title>Failed relationship</title>
 <link>http://drupalbin.com/3514</link>
 <description>/**
 * Plugin to provide an relationship handler for node from user
 */
function advanced_profile_panels_relationships() {
  $args[&#039;node_from_user&#039;] = array(&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3514&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3514#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/4">Panels</category>
 <pubDate>Fri, 10 Oct 2008 20:42:39 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3514 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for Code</title>
 <link>http://drupalbin.com/3513</link>
 <description>Drupal.signupFormLocationSettingAutoAttach = function () {
  $(&#039;div.signup-form-location-radios input[@type=radio]&#039;).click(function () {
    if (this.value == &#039;node&#039;) {&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3513&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3513#comments</comments>
 <pubDate>Fri, 10 Oct 2008 19:28:26 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3513 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for Code</title>
 <link>http://drupalbin.com/3512</link>
 <description>Drupal.signupFormLocationSettingAutoAttach = function () {
  $(&#039;div.signup-form-location-radios input[@type=radio]&#039;).click(function () {
    if (this.value == &#039;node&#039;) {&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3512&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3512#comments</comments>
 <pubDate>Fri, 10 Oct 2008 19:24:40 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3512 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for Code</title>
 <link>http://drupalbin.com/3511</link>
 <description>Drupal.signupFormLocationSettingAutoAttach = function () {
  $(&#039;div.signup-form-location-radios input[@type=radio]&#039;).click(function () {
    if (this.value == &#039;node&#039;) {&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3511&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3511#comments</comments>
 <pubDate>Fri, 10 Oct 2008 19:05:04 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3511 at http://drupalbin.com</guid>
</item>
<item>
 <title>Code</title>
 <link>http://drupalbin.com/3510</link>
 <description>Drupal.signupFormLocationSettingAutoAttach = function () {
  $(&#039;div.signup-form-location-radios input[@type=radio]&#039;).click(function () {
    if (this.value == &#039;node&#039;) {&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3510&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3510#comments</comments>
 <pubDate>Fri, 10 Oct 2008 18:57:24 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3510 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for TPL separados por nome</title>
 <link>http://drupalbin.com/3509</link>
 <description>function phptemplate_preprocess_page(&amp;$vars) {
        $alias = drupal_get_path_alias(str_replace(&#039;/edit&#039;,&#039;&#039;,$_GET[&#039;q&#039;]));
        if ($alias != $_GET[&#039;q&#039;]) {
          $suggestions = array();&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3509&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3509#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/620">tpl</category>
 <pubDate>Fri, 10 Oct 2008 12:03:17 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3509 at http://drupalbin.com</guid>
</item>
<item>
 <title>TPL separados por nome</title>
 <link>http://drupalbin.com/3508</link>
 <description>function _phptemplate_variables($hook, $vars = array()) {

  switch ($hook) {

    case &#039;page&#039;:

	  if (module_exists(&#039;path&#039;)) {
&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3508&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3508#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/620">tpl</category>
 <pubDate>Fri, 10 Oct 2008 11:51:05 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3508 at http://drupalbin.com</guid>
</item>
<item>
 <title>Code</title>
 <link>http://drupalbin.com/3507</link>
 <description>/**
 * Return a list of tasks that this profile supports.
 *
 * @return
 *   A keyed array of tasks the profile will perform during&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3507&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3507#comments</comments>
 <pubDate>Fri, 10 Oct 2008 10:53:21 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3507 at http://drupalbin.com</guid>
</item>
<item>
 <title>_render</title>
 <link>http://drupalbin.com/3506</link>
 <description>/*
 * _render does the same as _phptemplate_callback
 */
function _render($file, $variables) {

  extract($variables, EXTR_SKIP);
  ob_start();
  include &quot;./$file&quot;;&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3506&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3506#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/16">drupal</category>
 <category domain="http://drupalbin.com/taxonomy/term/40">theme</category>
 <pubDate>Fri, 10 Oct 2008 08:22:49 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3506 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for Implementation of hook_load</title>
 <link>http://drupalbin.com/3504</link>
 <description>/**
 * Implementation of hook_load
 */
function crm_load ($node) {
  $node_customer = db_fetch_object(db_query(
    &quot;SELECT firstname, lastname, nip, country, url, mail&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3504&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3504#comments</comments>
 <pubDate>Fri, 10 Oct 2008 06:31:40 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3504 at http://drupalbin.com</guid>
</item>
<item>
 <title>Implementation of hook_load</title>
 <link>http://drupalbin.com/3503</link>
 <description>/**
 * Implementation of hook_load
 */
function crm_load ($node) {
  $node_customer = db_fetch_object(db_query(
    &quot;SELECT firstname, lastname, nip, country, url, mail&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3503&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3503#comments</comments>
 <pubDate>Fri, 10 Oct 2008 06:26:38 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3503 at http://drupalbin.com</guid>
</item>
<item>
 <title>Fix for teaser field for views 1</title>
 <link>http://drupalbin.com/3502</link>
 <description>&lt;?php

/**
 * Implementation of hook_views_tables
 * define custom views fields
 */
function custom_fields_views_tables(){
  
  //node teaser field
  $tables[&#039;node_teaser&#039;] = array(&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3502&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3502#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/192">teaser</category>
 <category domain="http://drupalbin.com/taxonomy/term/13">views</category>
 <pubDate>Fri, 10 Oct 2008 02:57:47 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3502 at http://drupalbin.com</guid>
</item>
<item>
 <title>teaser field for views 1</title>
 <link>http://drupalbin.com/3501</link>
 <description>&lt;?php

/**
 * Implementation of hook_views_tables
 * define custom views fields
 */
function custom_fields_views_tables(){
  
  //node teaser field
  $tables[&#039;node_teaser&#039;] = array(&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3501&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3501#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/192">teaser</category>
 <category domain="http://drupalbin.com/taxonomy/term/13">views</category>
 <pubDate>Fri, 10 Oct 2008 02:50:11 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3501 at http://drupalbin.com</guid>
</item>
<item>
 <title>asdfg asdg</title>
 <link>http://drupalbin.com/3500</link>
 <description>&lt;?php

/**

 * Implementation of hook_comment

 *

 */

function comment_notify_comment ($a1, $op) {

  switch ($op) {

    case &#039;insert&#039;:
      dsm ($a1);

      // Comment ID
&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3500&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3500#comments</comments>
 <pubDate>Thu, 09 Oct 2008 23:24:46 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3500 at http://drupalbin.com</guid>
</item>
<item>
 <title>Test case #3 for http://drupal.org/node/238299</title>
 <link>http://drupalbin.com/3499</link>
 <description>/**
 * This will test file_create_url() by making round-trips through the web server.
 */
class FileCreateUrlTestCase extends FileTestCase {
  private $files;

  /**&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3499&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3499#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/658">file_create_url</category>
 <pubDate>Thu, 09 Oct 2008 15:59:07 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3499 at http://drupalbin.com</guid>
</item>
<item>
 <title>Test case #2 for http://drupal.org/node/238299</title>
 <link>http://drupalbin.com/3498</link>
 <description>/**
 * This will test file_create_url() by making round-trips through the web server.
 */
class FileCreateUrlTestCase extends FileTestCase {
  private $files;

  /**&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3498&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3498#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/658">file_create_url</category>
 <pubDate>Thu, 09 Oct 2008 15:11:06 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3498 at http://drupalbin.com</guid>
</item>
<item>
 <title>Test case http://drupal.org/node/238299</title>
 <link>http://drupalbin.com/3497</link>
 <description>/**
 * This will test file_create_url() by making round-trips through the web server.
 */
class FileCreateUrlTestCase extends DrupalWebTestCase {

  function getInfo() {
    return array(&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3497&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3497#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/658">file_create_url</category>
 <pubDate>Thu, 09 Oct 2008 13:53:57 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3497 at http://drupalbin.com</guid>
</item>
<item>
 <title>how to name fapi calls</title>
 <link>http://drupalbin.com/3496</link>
 <description>// generic function
function mymod_form_alter(&amp;$form, $form_state, $form_id) {
	//dpm($form); -- I frequently use this devel call to check things out as needed&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3496&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3496#comments</comments>
 <category domain="http://drupalbin.com/taxonomy/term/657">fapi form alter</category>
 <pubDate>Thu, 09 Oct 2008 12:17:29 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3496 at http://drupalbin.com</guid>
</item>
<item>
 <title>Code</title>
 <link>http://drupalbin.com/3495</link>
 <description>&lt;li&gt;There is an API function which registers load callbacks for paths with possible arguments. Example: &lt;code&gt;drupal_add_load_callback(&#039;user/%&#039;, &#039;user_load&#039;, array(1));&lt;/code&gt;.&lt;/li&gt;.&lt;p&gt;&lt;a href=&quot;http://drupalbin.com/3495&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupalbin.com/3495#comments</comments>
 <pubDate>Thu, 09 Oct 2008 12:12:51 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3495 at http://drupalbin.com</guid>
</item>
<item>
 <title>db_set_active</title>
 <link>http://drupalbin.com/3494</link>
 <description>  $prevdb = db_set_active(&#039;mls&#039;);
  $result_count = db_query($sql_count, $query[&#039;params&#039;]);
  $results = db_query($sql, $query[&#039;params&#039;]);
  db_set_active($prevdb);</description>
 <comments>http://drupalbin.com/3494#comments</comments>
 <pubDate>Thu, 09 Oct 2008 11:18:45 -0700</pubDate>
 <dc:creator />
 <guid isPermaLink="false">3494 at http://drupalbin.com</guid>
</item>
</channel>
</rss>
