You are here

function hook_commons_entity_integration_alter in Drupal Commons 7.3

Perform alterations on entity integrations.

Parameters

$integrations: An associative array of entity integrations whose keys define the entity type for each integration and whose values contain the bundles which have been integrated. Each bundle is itself an associative array, whose keys define the type of integration to enable and whose values contain the status of the integration. TRUE = enabled, FALSE = disabled.

See also

hook_commons_entity_integration()

1 invocation of hook_commons_entity_integration_alter()
commons_entity_integration_info in ./commons.profile
Get Commons entity integration information.

File

./commons.api.php, line 72
Hooks provided by the Commons module.

Code

function hook_commons_entity_integration_alter(&$integrations) {

  // Disable Media integration for the post content type.
  $integrations['node']['post']['media'] = FALSE;
}