How can I hide titles with render()? I'm using the Devel module, and the following snippet of code to insert its links into my theme.

&lt;?php echo render($page['devel']); ?&gt;


The result is a h2 element with the Development title in it, and then followed by the links as expected.

I want to hide the title, is it possible at all?



This is what I ended up doing.

&lt;ul id="devel-menu"&gt;
    &lt;?php if(array_key_exists('menu_devel', $page['devel'])):?&gt;
        &lt;?php foreach($page['devel']['menu_devel'] as $link):?&gt;
            &lt;?php if(is_array($link) &amp;&amp; array_key_exists('#title', $link)):?&gt;
                &lt;li&gt;&lt;a href="&lt;?php echo $link['#href'];?&gt;"&gt;&lt;?php echo $link['#title'];?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;?php endif;?&gt;
        &lt;?php endforeach;?&gt;
    &lt;?php endif;?&gt;
&lt;/ul&gt;


Does this seem acceptable, or is there a preferred way to do this in Drupal?
This is what I ended up doing, and it works 100%:

&lt;ul id="devel-menu"&gt;
    &lt;?php if(array_key_exists('menu_devel', $page['devel'])):?&gt;
        &lt;?php foreach($page['devel']['menu_devel'] as $link):?&gt;
            &lt;?php if(is_array($link) &amp;&amp; array_key_exists('#title', $link)):?&gt;
                &lt;li&gt;&lt;a href="&lt;?php echo $link['#href'];?&gt;"&gt;&lt;?php echo $link['#title'];?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;?php endif;?&gt;
        &lt;?php endforeach;?&gt;
    &lt;?php endif;?&gt;
&lt;/ul&gt;