You are here

public function CacheflushUIController::hook_menu in CacheFlush 7.3

Overrides EntityDefaultUIController::hook_menu().

Overrides EntityDefaultUIController::hook_menu

File

modules/cacheflush_ui/includes/cacheflush_ui.class.inc, line 16
Contains the CacheflushUIController class.

Class

CacheflushUIController
Custom controller for the administrator UI.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  $items[$this->path]['title'] = 'CacheFlush';
  $items[$this->path]['access callback'] = 'user_access';
  $items[$this->path]['access arguments'] = array(
    'cacheflush administer',
  );
  $items[$this->path . '/add']['file'] = 'includes/cacheflush_ui.forms.inc';
  $items[$this->path . '/add']['file path'] = drupal_get_path('module', 'cacheflush_ui');
  return $items;
}