You are here

function _menu_CrumbsPlugin__hierarchy::define in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 plugins/crumbs.menu.inc \_menu_CrumbsPlugin__hierarchy::define()

File

plugins/crumbs.menu.inc, line 18

Class

_menu_CrumbsPlugin__hierarchy

Code

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);
  }
}