You are here

function lti_tool_provider_entity_info in LTI Tool Provider 7

Implements hook_entity_info().

File

./lti_tool_provider.module, line 565
lti_tool_provider hook implementations and support functions.

Code

function lti_tool_provider_entity_info() {
  $return = array(
    'lti_tool_provider_consumer' => array(
      'label' => t('LTI Tool Provider Consumer'),
      'controller class' => 'LTIToolProviderConsumerEntityController',
      'base table' => 'lti_tool_provider_consumer',
      'fieldable' => TRUE,
      'entity keys' => array(
        'id' => 'lti_tool_provider_consumer_id',
        'label' => 'lti_tool_provider_consumer_consumer',
      ),
      'static cache' => TRUE,
      'view modes' => array(
        'full' => array(
          'label' => t('Default'),
          'custom settings' => FALSE,
        ),
      ),
      'uri callback' => 'lti_tool_provider_consumer_uri',
      'module' => 'lti_tool_provider_consumer',
      'bundles' => array(
        'lti_tool_provider_consumer' => array(
          'admin' => array(
            'path' => 'admin/config/lti-tool-provider/lti-tool-provider-consumers',
            'access arguments' => array(
              'administer lti_tool_provider module',
            ),
          ),
        ),
      ),
      'access callback' => 'lti_tool_provider_consumer_access',
    ),
  );
  return $return;
}