You are here

public function TMGMTEntityDefaultSourceUIController::hook_menu in Translation Management Tool 7

Overrides TMGMTDefaultSourceUIController::hook_menu

See also

tmgmt_ui_menu().

File

sources/entity/tmgmt_entity.ui.inc, line 248

Class

TMGMTEntityDefaultSourceUIController
Abstract entity ui controller class for source plugin that provides getEntity() method to retrieve list of entities of specific type. It also allows to implement alter hook to alter the entity query for a specific type.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  if (isset($items['admin/tmgmt/sources/entity_node'])) {

    // We assume that nodes are the most important overview if enabled, so
    // make sure they show up first.
    $items['admin/tmgmt/sources/entity_node']['weight'] = -20;
  }
  return $items;
}