You are here

function menu_get_children in Bibliography Module 7.2

Get the child elements of a menu item.

Parameters

string $menu_item:

Return value

array

File

./biblio.module, line 3443

Code

function menu_get_children($menu_item) {
  $leading_path = db_like($menu_item['path']);
  $result = db_query('SELECT * FROM menu_router WHERE path LIKE :leading_path', array(
    ':leading_path' => db_like($leading_path) . '/%',
  ));
  $children = array();
  foreach ($result as $row) {
    $children[$row->title] = $row->path;
  }
  return $children;
}