You are here

function domain_entity_allowed_entity_types in Domain Access Entity 7

Same name and namespace in other branches
  1. 8 domain_entity.module \domain_entity_allowed_entity_types()

Return the list of the domain_entity allowed entity types.

Return value

array List of entity types. This array is structured as follow: array( entity_type => array( bundle => array( widget_behaviour => array( default_value => default_value, ), ), other bundle => etc.. ), other entity => etc.. );

Example : array( 'commerce_order' => array( 'commerce_order' => array( DOMAIN_ENTITY_BEHAVIOR_USER => array( DOMAIN_ACTIVE => DOMAIN_ACTIVE ), ), ), );

8 calls to domain_entity_allowed_entity_types()
domain_entity_allowed_entity_types_base_tables in ./domain_entity.module
Return each base table of the allowed entity type.
domain_entity_commerce_product_reference_default_delta_alter in ./domain_entity.module
Implements hook_commerce_product_reference_default_delta_alter().
domain_entity_entity_access_callback in ./domain_entity.module
Entity access callback.
domain_entity_entity_info_alter in ./domain_entity.module
Implements hook_entity_info_alter().
domain_entity_entity_presave in ./domain_entity.module
Implements hook_entity_presave().

... See full list

4 string references to 'domain_entity_allowed_entity_types'
domain_entity_types_enable_domain_field in ./domain_entity.module
Helper function to active domain field on bundles of entity types.
domain_entity_ui_submit in ./domain_entity.admin.inc
Submit handler for the domain entity form.
domain_entity_uninstall in ./domain_entity.install
Implements hook_uninstall().
domain_entity_update_7000 in ./domain_entity.install
Implements hook_update_N().

File

./domain_entity.module, line 97
Defines field (e.g. domain_entity) for entities, and access query alter.

Code

function domain_entity_allowed_entity_types() {
  $domain_entity_allowed_entity_types = variable_get('domain_entity_allowed_entity_types', array());
  drupal_alter('domain_entity_allowed_entity_types', $domain_entity_allowed_entity_types);
  return $domain_entity_allowed_entity_types;
}