You are here

function _megamenu_strip_list_wrapper in Megamenu 7

Same name and namespace in other branches
  1. 6.2 megamenu.utilities.inc \_megamenu_strip_list_wrapper()

Remove the list wrapping div - we don't need it.

@todo Use regex replace instead?

Parameters

<strong> $list_markup:

1 call to _megamenu_strip_list_wrapper()
megamenu_theme_menu_tree in ./megamenu.module
Theme a menu tree.

File

./megamenu.utilities.inc, line 123
Helper/utility functions for Megamenu.

Code

function _megamenu_strip_list_wrapper($output = null) {

  // Remove opening wrapper div class.
  $output = str_replace('<div class="item-list">', '', $output);

  // Remove wrapper end div closer.
  $output = substr($output, 0, strlen($output) - strlen('</div>'));
  return $output;
}