<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Perhaps I am confused as to why this is a confusing topic. Standard menu definitions can be put into any menu (which is already effectively a block). The menu system supports a "menu_name" parameter.</DIV>
<DIV><FONT face="Courier New, courier, monaco, monospace, sans-serif" color=#6000bf>&nbsp; $items['mystats'] = array(<BR>&nbsp;&nbsp;&nbsp; 'title' =&gt; 'My Statistics',<BR>&nbsp;&nbsp;&nbsp; 'description' =&gt; 'See my post statistics',<BR>&nbsp;&nbsp;&nbsp; 'page callback' =&gt; 'mymodule_mystats',<BR>&nbsp;&nbsp;&nbsp; 'access arguments' =&gt; array('view analyst statistics'),<BR>&nbsp;&nbsp;&nbsp; 'type' =&gt; MENU_NORMAL_ITEM,<BR>&nbsp;&nbsp;&nbsp; 'menu_name' =&gt; 'menu-analyst',<BR>&nbsp;&nbsp;&nbsp; );</FONT><BR>So, just do this in your standard menu building code. In this case, you then&nbsp;enable the "menu-analyst" block.<BR>&nbsp;</DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR><FONT face=Tahoma size=2>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">
<HR SIZE=1>
</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Lluís Forns</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"></FONT><BR>In my module I want to create a block with menu links. Which is the<BR>correct way to do it so permissions are checked?<BR>I thought of creating a block and add l() funcionits, but l() don't<BR>check permission, and using if(users_accesss()) don't look smart.</DIV></DIV></div></body></html>