You are here

function party_simplenews_entity_info in Party 8.2

Implements hook_entity_info()

File

modules/party_simplenews/party_simplenews.module, line 15
Main module file for Party Simplenews integration

Code

function party_simplenews_entity_info() {

  // A realy simple entity so we can hang an extra field off of it and treat it as a data set
  $info['party_subscription_settings'] = array(
    'label' => 'Party Mail Subscription Settings',
    'entity class' => 'PartySubscriptionSettings',
    'controller class' => 'PartySubscriptionSettingsController',
    'base table' => 'party_subscription_settings',
    'fieldable' => TRUE,
    'entity keys' => array(
      'id' => 'subscription_settings_id',
    ),
    'module' => 'party_simplenews',
    'view modes' => array(
      'full' => array(
        'label' => t('Full'),
        'custom settings' => FALSE,
      ),
    ),
    'bundles' => array(
      'party_subscription_settings' => array(
        'label' => t('Simplenews Subscription Settings'),
        'admin' => array(
          'path' => 'admin/config/party/subscriptions',
        ),
      ),
    ),
  );
  return $info;
}