You are here

function simplenews_entity_info_alter in Simplenews 7

Same name and namespace in other branches
  1. 7.2 simplenews.module \simplenews_entity_info_alter()

Implements hook_entity_info_alter().

File

./simplenews.module, line 790
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_entity_info_alter(&$info) {

  // Add the 'Plain', 'HTML' and 'Text alternative' view mode for nodes in email.
  $info['node']['view modes'] += array(
    'email_plain' => array(
      'label' => t('Email: Plain'),
      'custom settings' => FALSE,
    ),
    'email_html' => array(
      'label' => t('Email: HTML'),
      'custom settings' => FALSE,
    ),
    'email_textalt' => array(
      'label' => t('Email: HTML text alternative'),
      'custom settings' => FALSE,
    ),
  );
}