<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://drupal.bozpit.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Centro de Recursos</title>
 <link>http://drupal.bozpit.com/recursos</link>
 <description>Resources</description>
 <language>en</language>
<item>
 <title>Configurar el breadcrumb para que siga la ruta en el url</title>
 <link>http://drupal.bozpit.com/node/40</link>
 <description>&lt;p&gt;Para configurar el breadcrumb y que siga exáctamente la ruta que se encuentra en el path lo podemos hacer con el siguiente código:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/**&lt;br /&gt;
 * url breadcrumbs&lt;br /&gt;
 * several functions&lt;br /&gt;
 * &lt;a href=&quot;http://drupal.org/node/93500&quot; title=&quot;http://drupal.org/node/93500&quot;&gt;http://drupal.org/node/93500&lt;/a&gt;&lt;br /&gt;
 */&lt;/p&gt;
&lt;p&gt;function url_breadcrumb($breadcrumb) {&lt;br /&gt;
    $url = path_alias_array();&lt;/p&gt;
&lt;p&gt;    // On admin pages, use the default breadcrumb. But I prefer having the&lt;br /&gt;
    // title of the current page display as well.  So I remove the &#039;&#039;&lt;br /&gt;
    // tag from the original breadcrumb with substr() and add in the title with&lt;br /&gt;
    // drupal_get_title().&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/40&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/40#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/21">breadcrumb</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Wed, 05 Aug 2009 01:01:22 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">40 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Agregar &lt;span&gt; a primary-links para lograr el efecto &#039;Sliding Door Tabs&#039;</title>
 <link>http://drupal.bozpit.com/node/39</link>
 <description>&lt;p&gt;Para agregar el efecto se puede hacer de dos maneras.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Con jQuery&lt;/strong&gt;&lt;br /&gt;
Esta es muy sencilla, solo hay que agregar un archivo llamado &#039;script.js&#039; en nuestro theme y poner dentro:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;// Wrap span tags around the anchor text in the primary menu.&lt;br /&gt;$(document).ready(function(){&lt;br /&gt;&amp;nbsp; $(&amp;quot;#primary li a&amp;quot;)&lt;br /&gt;&amp;nbsp; .wrapInner(&amp;quot;&amp;lt;span&amp;gt;&amp;quot; + &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;);&lt;br /&gt;});&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Utilizando theme_links&lt;/strong&gt;&lt;br /&gt;
La manera correcta de hacer esto es utilizando lo que se llama un override de una función. Para esto vamos a poner en template.php lo siguiente:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/**&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/39&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/39#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/11">7.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/39">primary links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/64">primary-links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/63">sliding door</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/57">template.php</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Wed, 29 Jul 2009 10:51:21 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">39 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>¿Cómo agregar un css id o class a &#039;local task&#039; o &#039;primary&#039; tabs para agregar un icono?</title>
 <link>http://drupal.bozpit.com/node/38</link>
 <description>&lt;p&gt;Cuando hablamos de local task estamos hablando de los enlaces que se colocan debajo de un nodo por ejemplo y nos indican cierta acción, lo más comun es que tengamos &#039;View&#039; y &#039;Edit&#039; si tenemos permisos.&lt;/p&gt;
&lt;p&gt;Si queremos agregar un &#039;id&#039; para que con CSS podamos agregar algún ícono a cada uno de manera independiente lo podremos hacer de esta manera:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
function phptemplate_menu_local_task($link, $active = FALSE) {&lt;br /&gt;
  $output = &#039;&#039;;&lt;br /&gt;
  $getcsslink = check_plain($link);&lt;/p&gt;
&lt;p&gt;  if(strpos($getcsslink, &#039;View&#039;)) {&lt;br /&gt;
    $submitcase = &#039;View&#039;;&lt;br /&gt;
  }&lt;br /&gt;
  if(strpos($getcsslink, &#039;Edit&#039;)) {&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/38&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/38#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/62">$link</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/60">local task</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/61">local tasks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/58">primary</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/52">tabs</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/57">template.php</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/59">ul.primary</category>
 <pubDate>Mon, 13 Jul 2009 14:17:02 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">38 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Ocultar tips e input format</title>
 <link>http://drupal.bozpit.com/node/37</link>
 <description>&lt;p&gt;Para ocultar los &quot;tips&quot; y el input format que aparece debajo de cada nodo cuando lo estamos creando o editando, lo podemos hacer de distintas maneras, una de ellas es simplemente usar css y poner &quot;display: none;&quot; sin embargo puede que no sea la más apropiada.&lt;/p&gt;
&lt;p&gt;La mejor solución a este problema sin duda es la siguiente:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/*&lt;br /&gt;* Override filter.module&#039;s theme_filter_tips() function to disable tips display.&lt;br /&gt;*/&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phptemplate_filter_tips&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$tips&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$long &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$extra &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phptemplate_filter_tips_more_info &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;() {&lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/37&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/37#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/56">input format</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/57">template.php</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/55">tips</category>
 <pubDate>Thu, 04 Jun 2009 12:00:39 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">37 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Cambiar el texto en un botón de views cuando usamos exposed filters</title>
 <link>http://drupal.bozpit.com/node/36</link>
 <description>&lt;p&gt;Para modificar el nombre de un botoń en views cuando usamos exposed filters lo podemos hacer con preprocess para que el cambio se haga antes de que la forma se construya, este es el código:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
function MYTHEME_preprocess_views_exposed_form(&amp;amp;$vars, $hook) {&lt;/p&gt;
&lt;p&gt;  // only alter the jobs search exposed filter form&lt;br /&gt;
  if ($vars[&#039;form&#039;][&#039;#id&#039;] == &#039;views-exposed-form-jobs-search-page-1&#039;) {&lt;/p&gt;
&lt;p&gt;    // Change the text on the submit button&lt;br /&gt;
    $vars[&#039;form&#039;][&#039;submit&#039;][&#039;#value&#039;] = t(&#039;Search&#039;);&lt;/p&gt;
&lt;p&gt;    // Rebuild the rendered version (submit button, rest remains unchanged)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/36&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/36#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/53">hook_form_alter</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/49">preprocess</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/54">views exposed filter</category>
 <pubDate>Thu, 28 May 2009 13:46:06 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">36 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Convertir multiple select en radios o checkboxes</title>
 <link>http://drupal.bozpit.com/node/35</link>
 <description>&lt;p&gt;Este pequeño módulo lo que hace es convertir, para el puro caso de taxonomías, una lista de selección de términos múltiples en la que usamos Control para seleccionar opciones, en una lista de checkboxes o radios, lo cual es mas conveniente y más sencillo para el usuario.&lt;/p&gt;
&lt;p&gt;El artículo original incluye la posiblidad de hacer esto para Drupal 5.x, sin embargo en este caso solo vamos a analizar el caso para Drupal 6.x. El artículo original es: &lt;a href=&quot;http://drupal.org/node/84286&quot; title=&quot;http://drupal.org/node/84286&quot;&gt;http://drupal.org/node/84286&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Para hacer esto tenemos que crear un módulo llamado alterform, mismo que se incluye al final como attachment.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/35&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/35#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/53">hook_form_alter</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/32">Modulo</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/14">taxonomy</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <enclosure url="http://drupal.bozpit.com/files/drupal/alterform.zip" length="3754" type="application/zip" />
 <pubDate>Wed, 27 May 2009 12:05:44 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">35 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Personalizar el breadcrumb</title>
 <link>http://drupal.bozpit.com/node/34</link>
 <description>&lt;p&gt;Para personalizar el breadcrumb y mostrar el título de la página que se está viendo, lo podemos hacer con el siguiente cógido:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;phptemplate_breadcrumb&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$breadcrumb&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sep &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; &amp;amp;gt; &#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$breadcrumb&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;implode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$breadcrumb&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sep&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sep&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Home&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;En page.tpl.php tendremos que poner:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$breadcrumb &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;	&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;De &lt;a href=&quot;http://drupal.org/node/64067&quot; title=&quot;http://drupal.org/node/64067&quot;&gt;http://drupal.org/node/64067&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/34#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/21">breadcrumb</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/2">Tutorial</category>
 <pubDate>Tue, 26 May 2009 13:20:19 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">34 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Ocultar un Tab en una página de organic groups y reemplazarla con otro valor.</title>
 <link>http://drupal.bozpit.com/node/33</link>
 <description>&lt;p&gt;Para ocultar un Tab en particular (menu_local_task) en una página determinada lo podemos hacer de varias maneras, para Drupal 6.x lo podemos hacer con un preprocess de la siguiente manera.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function phptemplate_preprocess(&amp;amp;$variables, $hook) {&lt;/p&gt;
&lt;p&gt;	if (arg(0) == &#039;node&#039; &amp;amp;&amp;amp; is_numeric(arg(1))) {&lt;br /&gt;
		$node = node_load(arg(1));&lt;br /&gt;
		if ($hook == &#039;page&#039;) {&lt;br /&gt;
			if ($node-&amp;gt;type == &#039;community&#039;) {&lt;br /&gt;
				theme_removetab(&#039;View&#039;, $variables);&lt;br /&gt;
			}&lt;br /&gt;
			if ($node-&amp;gt;type != &#039;community&#039;) {&lt;br /&gt;
				theme_removetab(&#039;Home&#039;, $variables);&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;/p&gt;
&lt;p&gt;  return $variables;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/33&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/33#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/35">organic groups</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/52">tabs</category>
 <pubDate>Tue, 26 May 2009 13:14:09 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">33 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Cómo formatear $submitted para mostrar el autor y la fecha de creación de otra manera</title>
 <link>http://drupal.bozpit.com/node/32</link>
 <description>&lt;p&gt;Para mostrar la información que se guarda en $submitted lo podemos hacer de esta manera:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Submitted by !username on @datetime&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;!username&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;username&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;@datetime&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;format_date&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;created&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/32#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/50">$submitted</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/42">node load</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/51">username</category>
 <pubDate>Sun, 17 May 2009 00:52:48 -0500</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">32 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>¿Cómo separo múltiples términos en el área de terms en Drupal 6.x?</title>
 <link>http://drupal.bozpit.com/node/31</link>
 <description>&lt;p&gt;En un artículo anterior vimos como separar las categorías para Drupal 5.x, este ya no funciona para Drupal 6.x, pero hay otra manera de hacerlo, incluso más personalizable.&lt;/p&gt;
&lt;p&gt;En este caso tenemos 4 categorías:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Free Tags&lt;/li&gt;
&lt;li&gt;Categoria&lt;/li&gt;
&lt;li&gt;Audiencia&lt;/li&gt;
&lt;li&gt;Material&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Y utilizamos en template.php&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function phptemplate_preprocess_node(&amp;amp;$variables) {&lt;br /&gt;
  $node = $variables[&#039;node&#039;];&lt;/p&gt;
&lt;p&gt;  // Display the current node&#039;s free-tags (but not other vocabs/terms)&lt;br /&gt;
  $freetags = array();&lt;br /&gt;
    foreach ($node-&amp;gt;taxonomy as $term) {&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/31&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/31#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/40">contemplate</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/42">node load</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/49">preprocess</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/14">taxonomy</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/13">terms</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Thu, 14 May 2009 13:06:39 -0500</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">31 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Obtener el rol del uid y redireccionar al usuario</title>
 <link>http://drupal.bozpit.com/node/30</link>
 <description>&lt;p&gt;Si necesitamos obtener el Role del usuario logueado y después hacer algo con esa información podemos utilizar el siguiente código:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;global &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;roles&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]) {&lt;br /&gt;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;I&#039;ll do something&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;De: &lt;a href=&quot;http://drupal.org/node/296621&quot; title=&quot;http://drupal.org/node/296621&quot;&gt;http://drupal.org/node/296621&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;En este ejemplo se utiliza un redirect en caso de que el usuario no pertenezca a cierto rol.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;global &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$user&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;roles&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;16&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]) {&lt;br /&gt;&amp;nbsp; echo &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Puedes acceder a esta página sin problemas&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;location: [urlhere]&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/30#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/48">roles</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/47">user load</category>
 <pubDate>Wed, 04 Mar 2009 23:15:32 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">30 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Usar la información de Bio para cambiar el autor del nodo</title>
 <link>http://drupal.bozpit.com/node/29</link>
 <description>&lt;p&gt;En el autor del nodo siempre usamos el &#039;username&#039; o nombre de usuario. Si utilizamos el módulo Bio puede ser más mostrar el nombre completo, compuesto de uno o varios campos, en el siguiente caso se utilizan dos campos para crear el nombre. Esto va en node.tpl.php o en comment.tpl.php&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// Load the bio node for the user that is the author of the comment&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bio_node &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;node_load&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;type&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;bio&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;uid&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$comment&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$biosubmittedname &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bio_node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;field_nombre&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;value&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] .&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; &#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bio_node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;field_ape_paterno&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;value&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/29#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/27">bio</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/18">comentarios</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/17">comments</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Mon, 23 Feb 2009 19:07:05 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">29 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Ocultar el Título del Nodo (Node Title) dependiendo del Tipo de Contenido</title>
 <link>http://drupal.bozpit.com/node/28</link>
 <description>&lt;p&gt;En ocasiones es últil ocultar el Título del Nodo dependiendo de cierto tipo de contenido, para eso en template.php vamos a agregar y a modificar:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_phptemplate_variables&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$hook&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;breadcrumb_title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;node_load&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;in_array&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;mesadirectiva&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;reviwe&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;menu&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$vars&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/28&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/28#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/46">node title</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Mon, 12 Jan 2009 18:46:54 -0600</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">28 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Ocultar el Título del Nodo (Node Title) en la Página Principal</title>
 <link>http://drupal.bozpit.com/node/27</link>
 <description>&lt;p&gt;Para ocultar el Node Title o Título del Nodo en la página principal solo tenemos que agregar a page.tpl.php&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if ( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$is_front &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; unset(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/27#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/46">node title</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Mon, 12 Jan 2009 18:44:47 -0600</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">27 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>¿Cómo usar Hierarchical Select?</title>
 <link>http://drupal.bozpit.com/node/26</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://drupal.org/project/hierarchical_select&quot;&gt;Hierarchical Select&lt;/a&gt; es un módulo que te permite crear campos dependientes de otros, por ejemplo, supongamos que deseamos cargar una lista de paises, después dependiendo del país cargar el estado y dependiendo del estado cargar la ciudad, nuestro ejemplo se vería así:&lt;/p&gt;
&lt;p&gt;-México&lt;br /&gt;
-- Nuevo León&lt;br /&gt;
--- Monterrey&lt;br /&gt;
--- San Pedro&lt;br /&gt;
-- Coahuila&lt;br /&gt;
--- Saltillo&lt;br /&gt;
-Estados Unidos&lt;br /&gt;
-- Texas&lt;br /&gt;
--- San Antonio&lt;br /&gt;
--- Houston&lt;br /&gt;
-- California&lt;br /&gt;
--- Los Angeles&lt;br /&gt;
--- San Diego&lt;br /&gt;
--- San Francisco&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/26&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/26#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/44">exposed filter</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/33">filters</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/45">hierarchical select</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/14">taxonomy</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/2">Tutorial</category>
 <pubDate>Wed, 31 Dec 2008 01:28:35 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">26 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Mover un &#039;&#039;exposed filter&#039;&#039; a un block</title>
 <link>http://drupal.bozpit.com/node/25</link>
 <description>&lt;p&gt;Para mover un filtro expuesto o exposed filter a un bloque podemos utilizar el módulo Views _filter Block (&lt;a href=&quot;http://drupal.org/project/views_filterblock&quot; title=&quot;http://drupal.org/project/views_filterblock&quot;&gt;http://drupal.org/project/views_filterblock&lt;/a&gt;) o bien hacerlo directamente con código como está explicado en:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.angrydonuts.com/displaying_views_exposed_filters&quot; title=&quot;http://www.angrydonuts.com/displaying_views_exposed_filters&quot;&gt;http://www.angrydonuts.com/displaying_views_exposed_filters&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Probado para la versión 4.x puede hacerse así básicamente:&lt;/p&gt;
&lt;p&gt;Creamos un bloque con:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp; $view &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;views_get_view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;trackerx&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;views_filters_form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;#action&#039;&#039;] = url($view-&amp;gt;url);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;drupal_get_form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;views_filters_$view-&amp;gt;name&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$form&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;views_filters&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/25&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/25#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/44">exposed filter</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/33">filters</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/43">views filter block</category>
 <pubDate>Sat, 27 Dec 2008 18:30:39 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">25 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>No mostrar fieldsets en Views Filter Block</title>
 <link>http://drupal.bozpit.com/node/24</link>
 <description>&lt;p&gt;Override theme function para no mostrar los fieldsets en &lt;a href=&quot;http://drupal.org/project/views_filterblock&quot;&gt;Views Filter Block&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function theme_views_filterblock($form) {&lt;/p&gt;
&lt;p&gt;	//check output mode, fieldset or plain list&lt;br /&gt;
	if(variable_get(&#039;views_filterblock_style&#039;, &#039;plain&#039;) == &#039;fieldset&#039;){&lt;br /&gt;
		return theme_views_filterblock_fieldsets($form);&lt;br /&gt;
	}&lt;/p&gt;
&lt;p&gt;  $view = $form[&#039;view&#039;][&#039;#value&#039;];&lt;br /&gt;
	//drupal_set_message(&#039;&#039;.print_r($view,TRUE).&#039;&#039;);&lt;br /&gt;
  // make the &#039;q&#039; come first&lt;br /&gt;
  $output = drupal_render($form[&#039;q&#039;]);&lt;/p&gt;
&lt;p&gt;  foreach ($form as $field =&amp;gt; $value) {&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/24&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/24#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/33">filters</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/43">views filter block</category>
 <pubDate>Mon, 15 Dec 2008 13:31:01 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">24 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Cargar el nodo con node load</title>
 <link>http://drupal.bozpit.com/node/23</link>
 <description>&lt;p&gt;Esto nos sirve para cargar el nodo y después cargar ciertas variables relativas al nodo:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;node_load&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// do something&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/23#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/24">$links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/42">node load</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Fri, 12 Dec 2008 23:51:08 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">23 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Mostrar la imagen de un nodo en un bloque</title>
 <link>http://drupal.bozpit.com/node/22</link>
 <description>&lt;p&gt;Con este código podemos mostrar la imagen del nodo en un bloque, separándola del contenido.&lt;/p&gt;
&lt;p&gt;Tenemos que crear un bloque con este código y que la imagen se deje de mostrar en el full node.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;node_load&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;content_format&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;field_image&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;field_image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;], &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;150x&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;150x es el nombre del formato en imagecache&lt;/p&gt;
&lt;p&gt;más info en:&lt;/p&gt;
&lt;p&gt;http://drupal.org/node/303455$comment-993032&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/22#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/30">cck</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/40">contemplate</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/41">imagefield</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Thu, 11 Dec 2008 18:03:34 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">22 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Poner imágenes en primary links</title>
 <link>http://drupal.bozpit.com/node/21</link>
 <description>&lt;p&gt;Si queremos poner una imagen al lado de un link en el menú de primary links, tenemos que reemplazar:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;links&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$primary_links&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;class&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;links primary-links&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;en page.tpl.php con:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;foreach( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$primary_links &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$primary_links&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;span&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$item&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;title&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;/span&amp;gt;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$primary_links&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;html&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;links&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$primary_links&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, array(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;class&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;links primary-links&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/21&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/21#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/1">FAQ</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/39">primary links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Sun, 07 Dec 2008 23:51:43 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">21 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Colorear el fondo de algunos renglones de una tabla de acuerdo a un campo</title>
 <link>http://drupal.bozpit.com/node/20</link>
 <description>&lt;p&gt;Para resaltar información en una vista de acuerdo a cierta información usamos en template.php esto:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function theme_views_view_table_cases_all($view, $nodes, $type) {&lt;br /&gt;
  $fields = _views_get_fields();&lt;/p&gt;
&lt;p&gt;  foreach ($nodes as $node) {&lt;br /&gt;
    $row = array();&lt;br /&gt;
    foreach ($view-&amp;gt;field as $field) {&lt;br /&gt;
      if ($fields[$field[&#039;id&#039;]][&#039;visible&#039;] !== FALSE) {&lt;br /&gt;
        $cell[&#039;data&#039;] = views_theme_field(&#039;views_handle_field&#039;, $field[&#039;queryname&#039;], $fields, $field, $node, $view);&lt;/p&gt;
&lt;p&gt;        if($node-&amp;gt;casetracker_case_case_status_id == &quot;8&quot;)&lt;br /&gt;
        {&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/20&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/20#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/38">tables</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:37:59 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">20 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Quitar opciones de Exposed Filters</title>
 <link>http://drupal.bozpit.com/node/19</link>
 <description>&lt;p&gt;A veces es útil quitar ciertos tipos de contenido en un exposed filter, para esto agregamos este código en template.php. Hay que cambiar VIEWNAME con el nombre de la vista.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Replace &quot;VIEWNAME&quot;, in the function&#039;s name, with&lt;br /&gt;
// the name of your view.&lt;br /&gt;
function theme_views_display_filters_VIEWNAME($view) {&lt;br /&gt;
  $form = drupal_retrieve_form(&quot;views_filters&quot;,$view);&lt;br /&gt;
  unset($form[&quot;filter0&quot;][&quot;#options&quot;][&quot;page&quot;]);&lt;br /&gt;
  unset($form[&quot;filter0&quot;][&quot;#options&quot;][&quot;story&quot;]);&lt;br /&gt;
  /*&lt;br /&gt;
  Filters (that is, fields) on the form are given sequential ID:&lt;br /&gt;
  &#039;filter0&#039;, &#039;filter1&#039;, &#039;filter2&#039;, ...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/19&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/19#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/33">filters</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:33:13 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">19 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Crear Gráficas Gantt con Eventos en Organic Groups</title>
 <link>http://drupal.bozpit.com/node/18</link>
 <description>&lt;p&gt;Esto nos sirve para crear gráficas Gantt asociadas a un nodo de eventos, dentro de organic groups.&lt;/p&gt;
&lt;p&gt;Fuente: &lt;a href=&quot;http://drupal.org/node/226598&quot; title=&quot;http://drupal.org/node/226598&quot;&gt;http://drupal.org/node/226598&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/18#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/36">gantt</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/37">jpgraph</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/35">organic groups</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/2">Tutorial</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:30:29 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">18 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Quitar &#039;item-list&#039; de las listas en views</title>
 <link>http://drupal.bozpit.com/node/17</link>
 <description>&lt;p&gt;Este código, al crear una vista y editar la forma en que se ve, nos sirve para mostrar una lista con espacios entre sus elementos, y no como lista, por lo que quitamos el &#039;item-list&#039;, básicamente se puede editar para mostrar lo que queramos. Esto va en el código de template.php que se genera cuando se está personalizando una vista con el Theme Wizard.&lt;/p&gt;
&lt;p&gt;Hay que reemplazar:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;return theme(&amp;#039;item_list&amp;#039;, $items);&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;con:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;return implode(&amp;quot; &amp;quot;,$items);&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/17#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:25:26 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">17 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Excluir el nodo actual en una vista con nodos similares</title>
 <link>http://drupal.bozpit.com/node/16</link>
 <description>&lt;p&gt;Para excluir el nodo que se esta viendo de una lista de nodos del mismo tipo de contenido o de la misma categoría, usamos como argumento Node: NID y agregamos el siguiente código:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if ( (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$type&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;block&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) ){&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/16#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/31">arguments</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/20">nid</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/34">node</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/14">taxonomy</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/13">terms</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:21:31 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">16 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Crear nuevos filtros en Views</title>
 <link>http://drupal.bozpit.com/node/15</link>
 <description>&lt;p&gt;Este módulo sirve para crear filtros dinámicos, por ejemplo, crear un nuevo filtro no existente en Views, se hace todo con php.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org/project/viewsphpfilter&quot;&gt;Views PHP Filter&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/15#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/33">filters</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/32">Modulo</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:16:14 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">15 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Cargar el nid como argumento en views</title>
 <link>http://drupal.bozpit.com/node/14</link>
 <description>&lt;p&gt;A veces es muy útil cargar el nid del nodo visto para hacer algo con eso, normalmente aplicar un filtro y digamos después generar un bloque con él. Para esto usamos:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;build_type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;block&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/14#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/31">arguments</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/1">FAQ</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/20">nid</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 08:11:26 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">14 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Usar primeras letras del body como titulo del nodo o node title</title>
 <link>http://drupal.bozpit.com/node/13</link>
 <description>&lt;p&gt;Este código funciona para agregar las primeras letras (10) del texto en el body o cuerpo y ponerlas como título del nodo.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$limit &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;strip_tags&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$words &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;str_word_count&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pos &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;array_keys&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$words&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$words&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$limit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;substr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pos&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$limit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;trim&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;rtrim&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;.&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;trim&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) . &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;...&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;return&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$text&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/13#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/19">auto_nodetitle</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Sun, 07 Dec 2008 08:05:03 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">13 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Crear bloque que muestre contenido del mismo autor</title>
 <link>http://drupal.bozpit.com/node/12</link>
 <description>&lt;p&gt;El siguiente código muestra contenido del mismo autor, un bloque del estilo &quot;Más contenido del mismo autor&quot;.&lt;/p&gt;
&lt;p&gt;Lógicamente dentro de views, agregamos el argumento: User: UID is Author&lt;/p&gt;
&lt;p&gt;Y el siguiente código:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$view&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;build_type &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;block&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;))) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;node_load&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;uid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;}&lt;br /&gt;return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Fuente: &lt;a href=&quot;http://drupal.org/node/174281&quot; title=&quot;http://drupal.org/node/174281&quot;&gt;http://drupal.org/node/174281&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/12#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Sun, 07 Dec 2008 05:37:56 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">12 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Agregar un campo de &#039;auto_increment&#039; con computed field</title>
 <link>http://drupal.bozpit.com/node/10</link>
 <description>&lt;p&gt;Si necesitas crear un tipo de contenido en el cual se vaya generando un número en sequencia pero solo de del mismo tipo de contenido, sin tocar la tabla &#039;sequences&#039;, podemos utilizar computed field para hacer esto. &lt;/p&gt;
&lt;p&gt;Tendremos que crear un campo de computed field y poner:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;if (!empty($node_field[0][&amp;#039;value&amp;#039;])) {&amp;nbsp; // the node is not new&lt;br /&gt;&amp;nbsp; return $node_field[0][&amp;#039;value&amp;#039;];&lt;br /&gt;}&lt;br /&gt;else {&amp;nbsp; // the node is new&lt;br /&gt;&amp;nbsp; $count = db_result(db_query(&amp;quot;SELECT COUNT(*) from node WHERE type = &amp;#039;transaction&amp;#039;&amp;quot;));&lt;br /&gt;&amp;nbsp; $node_field[0][&amp;#039;value&amp;#039;] = $count;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/10&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/10#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/30">cck</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/29">computed field</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Sat, 06 Dec 2008 02:46:10 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">10 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Editar el Perfil con Bio dentro de la misma pestaña</title>
 <link>http://drupal.bozpit.com/node/9</link>
 <description>&lt;p&gt;Esta versión del módulo (no es patch debido a la versión actual de bio) nos permite tener los campos de bio dentro de una misma pestaña, justo debajo de los valores de nombre de usuario, email y contraseña.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.org/node/271669&quot; title=&quot;http://drupal.org/node/271669&quot;&gt;http://drupal.org/node/271669&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/9#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/27">bio</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/28">profile</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Sat, 06 Dec 2008 02:41:11 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">9 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Crear el link de &quot;Flag this node&quot;</title>
 <link>http://drupal.bozpit.com/node/8</link>
 <description>&lt;p&gt;El módulo flag nos sirve para que los usuarios puedan guardar nodos. En algunas ocasiones es útil mover el link dentro del nodo o a un bloque.&lt;/p&gt;
&lt;p&gt;Dentro de node.tpl.php&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;_flag_create_link&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;favorites&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$node&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;nid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Para los casos en los que primero tengamos que cargar el nid para saber de qué nodo estamos hablando, haremos:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if ( &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;node&#039; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;is_numeric&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;flag_create_link&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;bookmarks&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;arg&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/8#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/26">flag</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Sat, 06 Dec 2008 02:39:29 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">8 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Mostrar el link de &quot;Ver esta página en PDF&quot; en un bloque</title>
 <link>http://drupal.bozpit.com/node/7</link>
 <description>&lt;p&gt;En algunas ocasiones, por ejemplo en un bloque, es útil mostrar el link de &quot;Ver esta página en PDF&quot; en otro lugar distinto a $links. Para esto solo tenemos que agregar:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;print_pdf_insert_link&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/7#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/24">$links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/25">blocks</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/23">print</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Fri, 05 Dec 2008 23:59:34 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">7 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Mostrar el link de &quot;Imprimir esta página&quot; en un bloque</title>
 <link>http://drupal.bozpit.com/node/6</link>
 <description>&lt;p&gt;En algunas ocasiones, por ejemplo en un bloque, es útil mostrar el link de &quot;Imprimir esta página&quot; o &quot;Print this page&quot; en otro lugar distinto a $links. Para esto solo tenemos que agregar:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;print_insert_link&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/6#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/24">$links</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/23">print</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Fri, 05 Dec 2008 23:50:32 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">6 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Definir un breadcrumb personalizado en views</title>
 <link>http://drupal.bozpit.com/node/5</link>
 <description>&lt;p&gt;A veces es útil cambiar el breadcrumb en views, en ocasiones views no lo hace por sí mismo, especialmente cuando establecemos paths distintas a la lógica de views, para cambiar esto, solo tenemos que agregar esto en los argumentos:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$breadcrumb[] = l(&amp;#039;Home&amp;#039;, null);&lt;br /&gt;$breadcrumb[] .= l(&amp;#039;News&amp;#039;, &amp;#039;news&amp;#039;);&lt;br /&gt;$breadcrumb[] .= l(&amp;#039;Politics&amp;#039;, &amp;#039;politics&amp;#039;);&lt;br /&gt;drupal_set_breadcrumb($breadcrumb);&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Esto aparecerá como Home -&amp;gt; News -&amp;gt; Politics&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/5#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/21">breadcrumb</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/22">views</category>
 <pubDate>Fri, 05 Dec 2008 23:47:24 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">5 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Usar nid en el título del nodo o como node title</title>
 <link>http://drupal.bozpit.com/node/4</link>
 <description>&lt;p&gt;Para ocultar el título del nodo, en vista de que no se puede omitir, se usa el módulo &lt;a href=&quot;http://drupal.org/project/auto_nodetitle&quot;&gt;auto_nodetitle&lt;/a&gt;, después solo hay que personalizar el siguiente código:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//Define your Prefix:&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$prefix&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;My-[type]-&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//wrap [nid] in quotes or else we&#039;ll get a parse error&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$token &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;[nid]&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;if (!empty(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$token&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) {&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// this node is not new:&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;return (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;$prefix-$token&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;else {&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// this node is new:&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$nid &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;db_next_id&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;{node}_nid&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) +&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; return (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;$prefix-$nid&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/4#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/7">Fácil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/19">auto_nodetitle</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/20">nid</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <pubDate>Fri, 05 Dec 2008 23:44:54 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">4 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Controlar el tamaño del campo textarea para escribir comentarios</title>
 <link>http://drupal.bozpit.com/node/3</link>
 <description>&lt;p&gt;Este pequeño código para template.php nos permite controlar la cantidad de renglones que tiene el campo de la forma para escribir comentarios. Normalmente muy útil si la queremos hacer más chica o más grande para que se ajuste a nuestro theme.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;/**&lt;br /&gt; * Override for theme_textarea(); reduce size of comments field.&lt;br /&gt; */&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;function &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;whatever_textarea&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$element&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$element&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#id&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] == &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;edit-comment&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$element&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;#rows&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;] = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; return &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;theme_textarea&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$element&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://drupal.bozpit.com/node/3#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/18">comentarios</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/17">comments</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Fri, 05 Dec 2008 19:58:51 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">3 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>¿Cómo separo múltiples términos en el área de terms en Drupal 5.x?</title>
 <link>http://drupal.bozpit.com/node/2</link>
 <description>&lt;p&gt;Hay que agregar a template.php&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function whatever_print_terms($nid) {&lt;br /&gt;
     $vocabularies = taxonomy_get_vocabularies();&lt;br /&gt;
     $output = &#039;
&lt;ul&gt;&#039;;&lt;br /&gt;
     foreach($vocabularies as $vocabulary) {&lt;br /&gt;
       if ($vocabularies) {&lt;br /&gt;
         $terms = taxonomy_node_get_terms_by_vocabulary($nid, $vocabulary-&amp;gt;vid);&lt;br /&gt;
         if ($terms) {&lt;br /&gt;
           $links = array();&lt;br /&gt;
           $output .= &#039;
&lt;li&gt;name .&#039;&quot;&amp;gt;&#039; . $vocabulary-&amp;gt;name . &#039;: &#039;;&lt;br /&gt;
           foreach ($terms as $term) {&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/2&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/2#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/8">Media</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/16">Snippets</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/14">taxonomy</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/13">terms</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/15">theme</category>
 <pubDate>Fri, 05 Dec 2008 19:51:53 -0600</pubDate>
 <dc:creator>luis</dc:creator>
 <guid isPermaLink="false">2 at http://drupal.bozpit.com</guid>
</item>
<item>
 <title>Creando Multisitios en Drupal</title>
 <link>http://drupal.bozpit.com/node/1</link>
 <description>&lt;p&gt;La característica de multisitios de Drupal es una de las muchas características por las que Drupal se distingue de otros CMS&#039;s, la solidez y la integración entre multisitios es extremadamente sencilla una vez que están configurados.&lt;/p&gt;
&lt;p&gt;Incluso, es posible compartir tablas entre los sitios para tener sincronizados los roles, usuarios, incluso los perfiles.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requisitos&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://drupal.bozpit.com/node/1&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://drupal.bozpit.com/node/1#comments</comments>
 <category domain="http://drupal.bozpit.com/taxonomy/term/9">5.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/10">6.x</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/6">Difícil</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/12">multisitios</category>
 <category domain="http://drupal.bozpit.com/taxonomy/term/2">Tutorial</category>
 <pubDate>Thu, 04 Dec 2008 17:43:26 -0600</pubDate>
 <dc:creator>admin</dc:creator>
 <guid isPermaLink="false">1 at http://drupal.bozpit.com</guid>
</item>
</channel>
</rss>
