function mailchimp_signup_entity_info in Mailchimp 7.4
Same name and namespace in other branches
- 7.5 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_entity_info()
- 7.3 modules/mailchimp_signup/mailchimp_signup.module \mailchimp_signup_entity_info()
Implements hook_entity_info().
File
- modules/
mailchimp_signup/ mailchimp_signup.module, line 206 - Mailchimp Signup module. Allows creation of signup forms integrated with Mailchimp.
Code
function mailchimp_signup_entity_info() {
$entities = array(
'mailchimp_signup' => array(
'label' => t('Mailchimp Signup'),
'plural label' => t('Mailchimp Signups'),
'entity class' => 'MailchimpSignup',
'controller class' => 'EntityAPIControllerExportable',
'base table' => 'mailchimp_signup',
'uri callback' => 'entity_class_uri',
'fieldable' => FALSE,
'exportable' => TRUE,
'label callback' => 'mailchimp_signup_entity_info_label',
'module' => 'mailchimp_signup',
'entity keys' => array(
'id' => 'mcs_id',
'name' => 'name',
),
'bundles' => array(
'mailchimp_signup' => array(
'label' => t('Mailchimp Signup'),
),
),
'view modes' => array(
'full' => array(
'label' => t('Full'),
'custom settings' => FALSE,
),
),
// Enable the entity API's admin UI.
'admin ui' => array(
'menu wildcard' => '%mailchimp_signup_name',
'path' => 'admin/config/services/mailchimp/signup',
'file' => 'includes/mailchimp_signup.admin.inc',
'controller class' => 'MailChimpSignupUIController',
),
'access callback' => 'mailchimp_signup_entity_access',
),
);
return $entities;
}