You are here

UnitsAbstractUIController.class.inc in Units of Measurement 7.2

Same filename and directory in other branches
  1. 7 includes/UnitsAbstractUIController.class.inc

Definition of UnitsAbstractUIController class.

File

includes/UnitsAbstractUIController.class.inc
View source
<?php

/**
 * @file
 * Definition of UnitsAbstractUIController class.
 */

/**
 * Abstract Admin UI controller class for units and measures.
 */
abstract class UnitsAbstractUIController extends EntityDefaultUIController {
  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;
  }

}

Classes

Namesort descending Description
UnitsAbstractUIController Abstract Admin UI controller class for units and measures.