You are here

function commons_media_has_media_integration in Drupal Commons 7.3

Helper function to determine whether an entity bundle has media integration.

Parameters

$entity_type: The entity type to check media integration for.

$bundle: The entity bundle to check media integration for.

Return value

boolean The value of the media integration if available, FALSE otherwise.

1 call to commons_media_has_media_integration()
commons_media_system_info_alter in modules/commons/commons_media/commons_media.module
Implements hook_system_info_alter().

File

modules/commons/commons_media/commons_media.module, line 65

Code

function commons_media_has_media_integration($entity_type, $bundle) {
  $commons_media_entity_types = commons_entity_integration_info();
  return isset($commons_media_entity_types[$entity_type][$bundle]['media']) ? $commons_media_entity_types[$entity_type][$bundle]['media'] : FALSE;
}