You are here

public function OAuth2ServerUIController::hook_menu in OAuth2 Server 7

Overrides hook_menu() defaults.

Overrides EntityDefaultUIController::hook_menu

File

includes/oauth2_server.server_admin.inc, line 15
Admin UI for servers.

Class

OAuth2ServerUIController
UI controller.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  $items[$this->path]['description'] = 'Manage servers and their associated clients and scopes.';

  // Fix the "Add oauth2 server" and "Import oauth2 server" titles.
  unset($items[$this->path . '/add']['title callback']);
  unset($items[$this->path . '/add']['title arguments']);
  unset($items[$this->path . '/import']['title callback']);
  unset($items[$this->path . '/import']['title arguments']);
  $items[$this->path . '/add']['title'] = 'Add server';
  $items[$this->path . '/import']['title'] = 'Import server';
  return $items;
}