function drupalgap_entity_info_alter in DrupalGap 7
Same name and namespace in other branches
- 7.2 drupalgap.module \drupalgap_entity_info_alter()
Implements hook_entity_info_alter().
File
- ./
drupalgap.module, line 94 - A module to provide a bridge between Drupal websites and PhoneGap mobile applications.
Code
function drupalgap_entity_info_alter(&$entity_info) {
// Add a DrupalGap view mode to nodes and users.
$entity_info['node']['view modes']['drupalgap'] = array(
'label' => t('DrupalGap'),
'custom settings' => TRUE,
);
$entity_info['user']['view modes']['drupalgap'] = array(
'label' => t('DrupalGap'),
'custom settings' => TRUE,
);
}