function node_gallery_entity_info_alter in Node Gallery 7
Implements hook_entity_info_alter().
File
- ./
node_gallery.module, line 11 - Node Gallery module.
Code
function node_gallery_entity_info_alter(&$entity_info) {
$entity_info['file']['view modes']['node_gallery_file_display'] = array(
'label' => t('Node Gallery File Display'),
'custom settings' => FALSE,
);
$entity_info['file']['view modes']['node_gallery_file_thumbnail'] = array(
'label' => t('Node Gallery File Thumbnail'),
'custom settings' => FALSE,
);
$entity_info['file']['view modes']['node_gallery_file_cover'] = array(
'label' => t('Node Gallery File Cover'),
'custom settings' => FALSE,
);
$entity_info['node']['view modes']['node_gallery_node_thumbnail'] = array(
'label' => t('Node Gallery Thumbnail'),
'custom settings' => TRUE,
);
}