You are here

function footermap_footer in footermap: a footer site map 5

Same name and namespace in other branches
  1. 5.2 footermap.module \footermap_footer()
  2. 6 footermap.module \footermap_footer()

File

./footermap.module, line 104

Code

function footermap_footer($main = 0) {

  /* base mid changed to '0' in 5.x? */

  /* is there a way of getting this dynamically in 4.x and 5.x consistently? */
  $o = "";
  $o .= "<div class=\"footermap\">\n";
  $x = footermap_get_menu(variable_get('top_menu', variable_get('menu_primary_menu', 0)), 1, 0, $o, variable_get('recurse_limit', 0));
  $o = preg_replace("/&#xb7; (\\S+)\$/", "\$1", $o);

  /* get rid of trailing shit :v */
  $o .= "</div>\n";
  return $o;
}