You are here

function ais_entity_info_alter in Adaptive Image Styles (ais) 7

Implements hook_entity_info_alter().

Add view modes to the file entity type, appropriate for displaying media.

File

./ais.module, line 237
Adaptive Image Styles Module

Code

function ais_entity_info_alter(&$entity_info) {
  $entity_info['file']['view modes']['media_adaptive'] = array(
    'label' => t('Adaptive'),
    'custom settings' => TRUE,
  );
}