You are here

function sendinblue_entity_info in SendinBlue 7.2

Same name and namespace in other branches
  1. 7 sendinblue.module \sendinblue_entity_info()

Implements hook_entity_info().

File

./sendinblue.module, line 162
The entry point of Sendinblue module.

Code

function sendinblue_entity_info() {
  $entities = array(
    'sendinblue_signup' => array(
      'label' => t('SendinBlue Signup'),
      'plural label' => t('SendinBlue Signups'),
      'entity class' => 'SendinBlueSignup',
      'controller class' => 'EntityAPIControllerExportable',
      'base table' => 'sendinblue_signup',
      'uri callback' => 'entity_class_uri',
      'fieldable' => FALSE,
      'label callback' => 'entity_class_label',
      'module' => 'sendinblue',
      'entity keys' => array(
        'id' => 'mcsId',
        'name' => 'name',
      ),
      'bundles' => array(
        'sendinblue_signup' => array(
          'label' => t('SendinBlue Signup'),
        ),
      ),
      'view modes' => array(
        'full' => array(
          'label' => t('Full'),
          'custom settings' => FALSE,
        ),
      ),
      // Enable the entity API's admin UI.
      'admin ui' => array(
        'path' => 'admin/config/system/sendinblue/signup',
        'file' => 'includes/sendinblue_signup.admin.inc',
        'controller class' => 'SendinBlueSignupUIController',
      ),
      'access arguments' => array(
        'administer sendinblue',
      ),
      'access callback' => 'sendinblue_signup_entity_access',
    ),
  );
  return $entities;
}