class SimplenewsSubscriberMetadataController in Simplenews 7.2
Metadata controller for the simplenews_subscriber entity.
Hierarchy
Expanded class hierarchy of SimplenewsSubscriberMetadataController
Related topics
1 string reference to 'SimplenewsSubscriberMetadataController'
- simplenews_entity_info in ./
simplenews.module - Implements hook_entity_info().
File
- includes/
simplenews.info.inc, line 43
View source
class SimplenewsSubscriberMetadataController extends EntityDefaultMetadataController {
/**
* Overrides EntityDefaultMetadataController::entityPropertyInfo().
*/
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;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function | ||
SimplenewsSubscriberMetadataController:: |
function |
Overrides EntityDefaultMetadataController::entityPropertyInfo(). Overrides EntityDefaultMetadataController:: |