You are here

function mailchimp_automations_entity_info in Mailchimp 7.5

Same name and namespace in other branches
  1. 7.4 modules/mailchimp_automations/mailchimp_automations.module \mailchimp_automations_entity_info()

Implements hook_entity_info().

File

modules/mailchimp_automations/mailchimp_automations.module, line 11
Module file for mailchimp_automations.

Code

function mailchimp_automations_entity_info() {
  $return = array(
    'mailchimp_automations_entity' => array(
      'label' => t('MailChimp Automations Entity'),
      'plural label' => t('MailChimp Automations Entities'),
      'controller class' => 'EntityAPIControllerExportable',
      'entity class' => 'MailchimpAutomationsEntity',
      'base table' => 'mailchimp_automations_entity',
      'uri callback' => 'entity_class_uri',
      'fieldable' => FALSE,
      'exportable' => TRUE,
      'module' => 'mailchimp_automations',
      'entity keys' => array(
        'id' => 'mailchimp_automations_entity_id',
        'name' => 'name',
        'label' => 'label',
      ),
      // Enable the entity API's admin UI.
      'admin ui' => array(
        'path' => 'admin/config/services/mailchimp/automations',
        'file' => 'includes/mailchimp_automations.admin.inc',
        'controller class' => 'MailChimpAutomationUIController',
      ),
      'label callback' => 'mailchimp_automations_entity_info_label',
      'access callback' => 'mailchimp_automations_entity_access',
    ),
  );
  return $return;
}