class SimplenewsNewsletterMetadataController in Simplenews 7.2
Metadata controller for the simplenews_newsletter entity.
Hierarchy
Expanded class hierarchy of SimplenewsNewsletterMetadataController
Related topics
1 string reference to 'SimplenewsNewsletterMetadataController'
- simplenews_entity_info in ./
simplenews.module - Implements hook_entity_info().
File
- includes/
simplenews.info.inc, line 13
View source
class SimplenewsNewsletterMetadataController extends EntityDefaultMetadataController {
/**
* Overrides EntityDefaultMetadataController::entityPropertyInfo().
*/
function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties =& $info[$this->type]['properties'];
$properties['format']['options list'] = 'simplenews_format_options';
$properties['priority']['options list'] = 'simplenews_get_priority';
$properties['new_account']['options list'] = 'simplenews_new_account_options';
$properties['opt_inout']['options list'] = 'simplenew_opt_inout_options';
$properties['receipt']['type'] = 'boolean';
$properties['block']['type'] = 'boolean';
$properties['from_name']['label'] = t('From name');
$properties['from_address']['label'] = t('From address');
$properties['new_account']['labe'] = t('New account');
$properties['email_subject']['label'] = t('E-mail subject');
$properties['opt_inout']['label'] = t('Opt-in/out method');
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 | ||
SimplenewsNewsletterMetadataController:: |
function |
Overrides EntityDefaultMetadataController::entityPropertyInfo(). Overrides EntityDefaultMetadataController:: |