You are here

public function BotchaD6Adapter::menu in BOTCHA Spam Prevention 6.4

File

controller/application/decorator/d6adapter/botcha.application.controller.d6adapter.inc, line 40

Class

BotchaD6Adapter

Code

public function menu() {
  $menus = $this->original
    ->menu();
  foreach ($menus as $menu) {
    switch ($menu['type']) {
      case MENU_LOCAL_TASK:
        $menu['type'] = MENU_LOCAL_TASK + MENU_NORMAL_ITEM;
        break;
      case MENU_LOCAL_ACTION:

        // @todo It is not fair replacement: invent how to move nice link from hook_theme implementation.
        $menu['type'] = MENU_CALLBACK;
    }
  }
  return $menus;
}