Public feed #725811

Something

public text v1 · immutable
Raw Edit
·published 2007-10-04 18:32 UTC
rendered paste body
function menu_get_active_title() {
  $active_trail = menu_get_active_trail();
 
  foreach (array_reverse($active_trail) as $item) {
    if (!(bool)($item['type'] & MENU_IS_LOCAL_TASK)) {
      return (empty($item['options']['html'])) ? check_plain($item['title']) : $item['title'];
    }
  }
}