public function PartyHatUIController::hook_menu in Party 7
Same name and namespace in other branches
- 8.2 modules/party_hat/includes/party_hat.entity.inc \PartyHatUIController::hook_menu()
Overrides hook_menu() defaults.
Overrides EntityDefaultUIController::hook_menu
File
- modules/
party_hat/ includes/ party_hat.entity.inc, line 112 - Contains the controller classes for Party entities.
Class
- PartyHatUIController
- UI controller.
Code
public function hook_menu() {
$items = parent::hook_menu();
$items[$this->path]['title'] = 'Manage hats';
// Set the main hat admin page as a local task so it appears within the
// main Community admin area.
$items[$this->path]['type'] = MENU_LOCAL_TASK;
// Disambiguate the 'list' tab.
$items[$this->path . '/list']['title'] = 'List hats';
return $items;
}