public function UnitsAbstractUIController::hook_menu in Units of Measurement 7.2
Same name and namespace in other branches
- 7 includes/UnitsAbstractUIController.class.inc \UnitsAbstractUIController::hook_menu()
Provides definitions for implementing hook_menu().
Overrides EntityDefaultUIController::hook_menu
1 call to UnitsAbstractUIController::hook_menu()
- UnitsUnitUIController::hook_menu in includes/
UnitsUnitUIController.class.inc - Provides definitions for implementing hook_menu().
1 method overrides UnitsAbstractUIController::hook_menu()
- UnitsUnitUIController::hook_menu in includes/
UnitsUnitUIController.class.inc - Provides definitions for implementing hook_menu().
File
- includes/
UnitsAbstractUIController.class.inc, line 13 - Definition of UnitsAbstractUIController class.
Class
- UnitsAbstractUIController
- Abstract Admin UI controller class for units and measures.
Code
public function hook_menu() {
$items = parent::hook_menu();
// By default, for overview page entity UI controller class set access of
// 'view' entity, but that is not good for measures, as measures and units
// have to be publicly viewed, but at the same time public should not be
// able to access overview admin table.
$items[$this->path]['access arguments'] = array(
'update',
$this->entityType,
);
return $items;
}