You are here

public function TMGMTTranslatorUIController::hook_menu in Translation Management Tool 7

Provides definitions for implementing hook_menu().

Overrides EntityDefaultUIController::hook_menu

File

ui/includes/tmgmt_ui.controller.translator.inc, line 16
Contains the translator UI controller.

Class

TMGMTTranslatorUIController
Entity UI controller for the Translator Entity.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  $items[$this->path . '/add']['title'] = 'Add Translator';
  unset($items[$this->path . '/add']['title callback']);
  unset($items[$this->path . '/add']['title arguments']);
  if (!empty($this->entityInfo['exportable'])) {
    $items[$this->path . '/import']['title'] = 'Import Translator';
    unset($items[$this->path . '/import']['title callback']);
    unset($items[$this->path . '/import']['title arguments']);
  }
  return $items;
}