You are here

function SimplenewsSubscriberMetadataController::entityPropertyInfo in Simplenews 7.2

Overrides EntityDefaultMetadataController::entityPropertyInfo().

Overrides EntityDefaultMetadataController::entityPropertyInfo

File

includes/simplenews.info.inc, line 48

Class

SimplenewsSubscriberMetadataController
Metadata controller for the simplenews_subscriber entity.

Code

function entityPropertyInfo() {
  $info = parent::entityPropertyInfo();
  $properties =& $info[$this->type]['properties'];
  $properties['activated']['type'] = 'boolean';
  $properties['mail']['label'] = t('E-mail');
  $properties['uid']['type'] = 'user';
  $properties['uid']['label'] = t('User');
  $properties['language']['type'] = 'language';
  $properties['created']['type'] = 'date';
  $properties['simplenews_subscriptions'] = array(
    'label' => t('Simplenews Subscriptions'),
    'description' => t('The simplenews newsletters the party is subscribed to.'),
    'type' => 'list<simplenews_newsletter>',
    'getter callback' => 'simplenews_property_simplenews_subscriptions_getter_callback',
  );
  return $info;
}