When you say that it breaks your primary links, how do you mean?<br><br><div class="gmail_quote">On Mon, May 30, 2011 at 6:08 AM, Marolijo <span dir="ltr">&lt;<a href="mailto:marolijo@yahoo.es">marolijo@yahoo.es</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello, I&#39;m tryin&#39; to setup my first module. Created the .info and<br>
.module files on sites/all/modules/modulename, and start with a very<br>
basic block but when I enable th emodule it breaks my primary links<br>
menu (superfish menu).<br>
<br>
Here&#39;s the simple code on .module , any idea?<br>
<br>
Wich is the simplest way to debug this kind of problems?<br>
<br>
Thank&#39;s for your time an patience.<br>
<br>
&lt;?php<br>
function modulename_block($op=&#39;list&#39;,$delta=array(),$edit=array())<br>
{<br>
      switch ($op)<br>
     {<br>
<br>
        case &#39;list&#39;:<br>
                       $blocks[0][&#39;info&#39;] = t(&#39;module test&#39;);<br>
                       return $blocks;<br>
                       break;<br>
         case &#39;view&#39;:<br>
<br>
<br>
          $content = &#39;hello world&#39;;<br>
          $blocks[&#39;subject&#39;] = t(&#39;module test&#39;);<br>
          $blocks[&#39;content&#39;] = &quot;Test&quot;;<br>
       return $blocks;<br>
       break;<br>
      }<br>
}<br>
<font color="#888888">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>