You are here

function subscriptions_mail_entity_info_alter in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions_mail/subscriptions_mail.module \subscriptions_mail_entity_info_alter()

Implements hook_entity_info_alter().

File

./subscriptions_mail.module, line 296
Subscriptions module mail gateway.

Code

function subscriptions_mail_entity_info_alter(&$entity_info) {
  $entity_info['node']['view modes'] += array(
    'subscriptions' => array(
      'label' => t('Subscriptions'),
      'custom settings' => FALSE,
    ),
  );
  if (module_exists('comment')) {
    $entity_info['comment']['view modes'] += array(
      'subscriptions' => array(
        'label' => t('Subscriptions'),
        'custom settings' => FALSE,
      ),
    );
  }
}