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"><<a href="mailto:marolijo@yahoo.es">marolijo@yahoo.es</a>></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'm tryin' 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's the simple code on .module , any idea?<br>
<br>
Wich is the simplest way to debug this kind of problems?<br>
<br>
Thank's for your time an patience.<br>
<br>
<?php<br>
function modulename_block($op='list',$delta=array(),$edit=array())<br>
{<br>
switch ($op)<br>
{<br>
<br>
case 'list':<br>
$blocks[0]['info'] = t('module test');<br>
return $blocks;<br>
break;<br>
case 'view':<br>
<br>
<br>
$content = 'hello world';<br>
$blocks['subject'] = t('module test');<br>
$blocks['content'] = "Test";<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>