Re: Plugin: bbMenu 0.1 beta
So, I think now you’re getting the function name “is_bb_search” (among other function names) from the db and you want to execute it to know if a particular list item should be marked as current.
If that’s the case then it’s what I described before, which is something like where the function name is defined in $rw["location"]
so…
...
$page_location = $page->location;
$switch = eval("return ".$rw["location"]);
$current = ($switch ? ' class="current"' : "");
echo "<li $current><a href="$page_id">$page_item</a></li>";
...