class _menu_CrumbsPlugin__link_title in Crumbs, the Breadcrumbs suite 6
Same name and namespace in other branches
- 6.2 plugins/crumbs.menu.inc \_menu_CrumbsPlugin__link_title
Hierarchy
Expanded class hierarchy of _menu_CrumbsPlugin__link_title
File
- plugins/
crumbs.menu.inc, line 46
View source
class _menu_CrumbsPlugin__link_title {
function define($h) {
$q = db_query($sql = "SELECT menu_name, title FROM {menu_custom}");
$titles = array();
while ($row = db_fetch_object($q)) {
$h
->addRule($row->menu_name, $row->title);
}
}
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;
}
}