You are here

public function CerUIController::hook_menu in Corresponding Entity References 7.3

Provides definitions for implementing hook_menu().

Overrides EntityDefaultUIController::hook_menu

File

includes/CerUIController.inc, line 10

Class

CerUIController
Contains the controller class for CER's UI (i.e., preset management pages), used by Entity API.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  $items[$this->path]['title'] = t('Corresponding Entity References');
  $items["{$this->path}/list"]['title'] = t('Presets');
  $this
    ->setTitle($items["{$this->path}/add"], t('Add preset'));
  $this
    ->setTitle($items["{$this->path}/import"], t('Import preset'));
  $items["{$this->path}/manage/%entity_object/toggle"] = $this
    ->createCallback('cer_toggle_preset', 'update');
  $items["{$this->path}/manage/%entity_object/invert"] = $this
    ->createCallback('cer_invert_preset', 'create');

  // Don't provide a page for cloning a preset.
  unset($items["{$this->path}/manage/%entity_object/clone"]);
  return $items;
}