You are here

function workflow_admin_ui_entity_info_alter in Workflow 7.2

Implements hook_entity_info_alter().

Adds Admin UI to entities, using EntityWorkflowUIController.

File

workflow_admin_ui/workflow_admin_ui.module, line 21
Provides administrative UI for workflow.

Code

function workflow_admin_ui_entity_info_alter(&$entity_info) {
  $admin_path = WORKFLOW_ADMIN_UI_PATH;
  $entity_info['Workflow'] += array(
    'access callback' => 'workflow_access',
    'admin ui' => array(
      'path' => $admin_path,
      // Do not add 'file', since each page has its own file.
      // 'file' => 'workflow_admin_ui/workflow_admin_ui.pages.inc',
      'controller class' => 'EntityWorkflowUIController',
      'menu wildcard' => '%workflow',
    ),
  );
}