public function CommerceFileLicenseEntityUIController::hook_menu in Commerce File 7
Overrides hook_menu() defaults.
Overrides EntityDefaultUIController::hook_menu
File
- includes/
commerce_file_license.ui.inc, line 15 - Provides a controller for building an entity overview form.
Class
- CommerceFileLicenseEntityUIController
- Default controller for providing UI.
Code
public function hook_menu() {
$items = parent::hook_menu();
// unset base path to allow views to control it
unset($items[$this->path]);
// alter add path
unset($items[$this->path . '/add']['title callback'], $items[$this->path . '/add']['title arguments']);
$items[$this->path . '/add'] = array(
'title' => 'Add a file license',
'description' => 'Add a new file license.',
) + $items[$this->path . '/add'];
return $items;
}