display->handler->get_option('path'); if (empty($path)) { return FALSE; } $item = menu_get_item($path); // If we are on the original router path, the menu system has checked access already. if ($item['href'] == $_GET['q']) { return TRUE; } return $item['access']; } }