How to output child links based on the current page When landing on a page which has a menu item that is a parent to other pages menu items, I would like to be able to show a list of those child menu items. I am using the following code.

$trail = menu_get_active_trail();
menu_build_tree('main-menu', array(
  'expanded' =&gt; array($trail[1]['mlid'])
));


However, the returned array looks like this (with a lot of unnecessary removed).

array
'49950 PKY Truck Beauty 312' =&gt; 
array
  'link' =&gt; &amp;
    array
      'menu_name' =&gt; string 'main-menu' (length=9)
      'mlid' =&gt; string '312' (length=3)
      'plid' =&gt; string '311' (length=3)
  'below' =&gt; 
    array
      '49952 Seminars 314' =&gt; 
        array
          'link' =&gt; &amp;
            array
              'menu_name' =&gt; string 'main-menu' (length=9)
              'mlid' =&gt; string '314' (length=3)
              'plid' =&gt; string '311' (length=3)
      '50000 HDMA Breakfast 316' =&gt; 
        array
          'link' =&gt; &amp;
            array
              'menu_name' =&gt; string 'main-menu' (length=9)
              'mlid' =&gt; string '316' (length=3)
              'plid' =&gt; string '311' (length=3)
      '50000 MATS Concert 315' =&gt; 
        array
          'link' =&gt; &amp;
            array
              'menu_name' =&gt; string 'main-menu' (length=9)
              'mlid' =&gt; string '315' (length=3)
              'plid' =&gt; string '311' (length=3)


Notice how 314, 315, and 316 are 'below' 312? They are siblings in my menu structure, and that seems to be verified by each one having the same value for plid (311).  Obviously I can fix this by passing the array through another function, but I can't help but think I'm just missing something.
Just wanted to follow-up. I came back to this question and found the following: https://stackoverflow.com/questions/2716787/how-to-get-all-the-menu-items-below-a-certain-parent-in-drupal which is exactly what I needed.

The code, copied from the above-mentioned link and modified to fit my needs (mainly to use the current path to build the menu tree from, rather than using a hard-coded value:

$parent = menu_link_get_preferred($_GET['q']);
$parameters = array(
  'active_trail' =&gt; array($parent['plid']),
  'only_active_trail' =&gt; FALSE,
  'min_depth' =&gt; $parent['depth']+1,
  'max_depth' =&gt; $parent['depth']+1,
  'conditions' =&gt; array('plid' =&gt; $parent['mlid']),
);

$children = menu_build_tree($parent['menu_name'], $parameters);

return '&lt;div class="content-sub-menu content-padder"&gt;' . drupal_render(menu_tree_output($children)) . '&lt;/div&gt;';