You are here

function mailchimp_lists_entity_info in Mailchimp 7.2

Implements hook_entity_info().

File

modules/mailchimp_lists/mailchimp_lists.module, line 1055
Mailchimp lists module.

Code

function mailchimp_lists_entity_info() {
  $return = array(
    'mailchimp_list' => array(
      'label' => t('MailChimp List'),
      'plural label' => t('MailChimp Lists'),
      'entity class' => 'MailchimpList',
      'controller class' => 'EntityAPIControllerExportable',
      'base table' => 'mailchimp_lists',
      'uri callback' => 'mailchimp_list_uri',
      'fieldable' => FALSE,
      'exportable' => TRUE,
      'label callback' => 'entity_class_label',
      'module' => 'mailchimp_lists',
      'entity keys' => array(
        'id' => 'id',
        'name' => 'name',
      ),
      'bundles' => array(
        'mailchimp_list' => array(
          'label' => t('MailChimp List'),
        ),
      ),
      'view modes' => array(
        'full' => array(
          'label' => t('Complete List'),
          'custom settings' => FALSE,
        ),
      ),
    ),
  );
  return $return;
}