You are here

function _megamenu_strip_list_wrapper in Megamenu 6.2

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

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

Parameters

<strong> $list_markup:

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

File

./megamenu.utilities.inc, line 124
Helper/utility functions

Code

function _megamenu_strip_list_wrapper($output = null) {

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

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