You are here

function _menu_CrumbsPlugin__link_title::findTitle in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 6 plugins/crumbs.menu.inc \_menu_CrumbsPlugin__link_title::findTitle()

File

plugins/crumbs.menu.inc, line 64

Class

_menu_CrumbsPlugin__link_title

Code

function findTitle($path, $item) {
  $q = db_query($sql = "\n      SELECT\n        link_title,\n        menu_name\n      FROM\n        {menu_links}\n      WHERE link_path = '%s'\n      GROUP BY menu_name\n    ", $path);
  $titles = array();
  while ($row = db_fetch_object($q)) {
    $titles[$row->menu_name] = $row->link_title;
  }
  return $titles;
}