You are here

function _menu_titles in Token 6

Deprecated. Use the raw return value of token_menu_link_get_parents_all() instead.

File

./token.module, line 953
The Token API module.

Code

function _menu_titles($menu_link, $nid) {
  $titles = array();
  $parents = token_menu_link_get_parents_all($menu_link['mlid']);
  foreach ($parents as $mlid => $parent) {
    $titles[] = $parent['title'];
  }
  return $titles;
}