You are here

private function CerUIController::createCallback in Corresponding Entity References 7.3

1 call to CerUIController::createCallback()
CerUIController::hook_menu in includes/CerUIController.inc
Provides definitions for implementing hook_menu().

File

includes/CerUIController.inc, line 28

Class

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

Code

private function createCallback($function, $operation, array $init = array()) {
  return $init + array(
    'type' => MENU_CALLBACK,
    'page callback' => $function,
    'page arguments' => array(
      5,
    ),
    'load arguments' => array(
      'cer',
    ),
    'access callback' => 'entity_access',
    'access arguments' => array(
      $operation,
      'cer',
    ),
    'file' => 'cer.admin.inc',
    'file path' => drupal_get_path('module', 'cer'),
  );
}