You are here

function asset_gallery_entity_info_alter in Asset 7

Implements hook_entity_info_alter().

File

modules/asset_gallery/asset_gallery.module, line 40
Code for the Image gallery asset.

Code

function asset_gallery_entity_info_alter(&$entity_info) {
  if (isset($entity_info['asset'])) {
    $entity_info['asset']['view modes']['gallery'] = array(
      'label' => t('Gallery'),
      'custom settings' => FALSE,
    );
  }
}