You are here

function oa_wizard_entity_info in Open Atrium Wizard 7.2

Implements hook_crud_hook_entity_info().

File

./oa_wizard.module, line 255
Code for the OpenAtrium Wizard.

Code

function oa_wizard_entity_info() {
  $return = array(
    'oa_wizard' => array(
      'label' => t('Wizard'),
      'entity class' => 'Entity',
      'controller class' => 'EntityAPIControllerExportable',
      'module' => 'oa_wizard',
      'base table' => 'oa_wizard',
      'fieldable' => TRUE,
      'exportable' => TRUE,
      'entity keys' => array(
        'id' => 'wizard_id',
        'label' => 'name',
        'name' => 'name',
        'bundle' => 'bundle',
      ),
      'view callback' => 'entity_metadata_view_single',
      'creation callback' => 'oa_wizard_create',
      'access callback' => 'oa_wizard_access',
      'save callback' => 'oa_wizard_save',
      'bundles' => array(
        'wizard' => array(
          'label' => t('Wizard'),
          'admin' => array(
            'path' => 'admin/structure/wizards/manage/%oa_wizard_type',
            'bundle argument' => 4,
            'real path' => 'admin/structure/wizards/manage/wizard',
            'access arguments' => array(
              'administer site configuration',
            ),
          ),
        ),
      ),
      'view modes' => array(
        'full' => array(
          'label' => t('Full'),
          'custom settings' => FALSE,
        ),
      ),
    ),
  );
  return $return;
}