You are here

function _menu_link_content_visibility_preprocess_superfish_items in Custom Menu Links Visibility 8

1 call to _menu_link_content_visibility_preprocess_superfish_items()
menu_link_content_visibility_preprocess_superfish in ./menu_link_content_visibility.module
Implements hook_preprocess_HOOK().

File

./menu_link_content_visibility.module, line 144

Code

function _menu_link_content_visibility_preprocess_superfish_items($items) {
  foreach ($items as $key => $item) {
    if (!_menu_link_content_visibility_preprocess_superfish_item_is_visible($item)) {
      unset($items[$key]);
    }
    else {
      $items[$key]->subtree = _menu_link_content_visibility_preprocess_superfish_items($item->subtree);
    }
  }
  return $items;
}