You are here

function redhen_relation_entity_info_alter in RedHen CRM 7

Implements hook_entity_info_alter().

File

modules/redhen_relation/redhen_relation.module, line 752
Redhen CRM Relation Module.

Code

function redhen_relation_entity_info_alter(&$entity_info) {

  // Add teaser view mode to relations.
  $entity_info['relation']['view modes']['teaser'] = array(
    'label' => t('Teaser'),
    'custom settings' => TRUE,
  );
  $entity_info['relation']['access callback'] = 'redhen_relation_entity_access';
}