function tripal_ws_entity_info_alter

3.x tripal_ws.module tripal_ws_entity_info_alter(&$entity_info)

Implements hook_entity_info_alter()

Add the web services display as a view mode.

Related topics

File

tripal_ws/tripal_ws.module, line 465
The Tripal Web Service Module

Code

function tripal_ws_entity_info_alter(&$entity_info) {

  // Set the controller class for nodes to an alternate implementation of the
  // DrupalEntityController interface.
  $entity_info['TripalEntity']['view modes'] += array(
    'tripal_ws' => array(
      'label' => t('Tripal Web Services'),
      'custom settings' => FALSE,
    ),
  );
}