Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
nodetrail-6.x-1.x-dev. reports error about undefined function _menutrails_recurse_crumbs in nodetrail.module.
I'v took it from menu_trail module, paste it and error is gone :) :
function _menutrails_recurse_crumbs($tree, $item, &$crumbs, $above = array()) {
foreach ($tree as $menu_item) {
if ($menu_item['link']['link_path'] == $item['href']) {
foreach($above as $trail_item) {
$crumbs[] = l($trail_item['link']['link_title'], $trail_item['link']['link_path']);
}
$crumbs[] = l($menu_item['link']['link_title'], $menu_item['link']['link_path']);
break;
}
if (is_array($menu_item['below'])) {
$above[] = $menu_item;
_menutrails_recurse_crumbs($menu_item['below'], $item, $crumbs, $above);
}
}
}
In string 26 bootstrap reports about missing argument. Was:
$options = menu_parent_options(menu_get_menus());
I'v wrote:
$options = menu_parent_options(menu_get_menus(),'');
I don't know, is it solution correct, but for me it seems to work fine...
Comments
Comment #1
davemybes CreditAttribution: davemybes commentedSetting this as a duplicate of the other issue (http://drupal.org/node/405234), as a solution is there for both errors.