class EntityformTypeMetadataController in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.info.inc \EntityformTypeMetadataController
Extend the defaults.
Hierarchy
Expanded class hierarchy of EntityformTypeMetadataController
1 string reference to 'EntityformTypeMetadataController'
- entityform_entity_info in ./
entityform.module - Implement hook_entity_info().
File
- ./
entityform.info.inc, line 56 - Provides Entity metadata integration.
View source
class EntityformTypeMetadataController extends EntityDefaultMetadataController {
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties =& $info[$this->type]['properties'];
$properties['notification_text'] = array(
'label' => t("Notification Text"),
'description' => t("Custom text to display in notifications."),
'getter callback' => 'entityformtype_metadata_get_properties',
'type' => 'text',
'computed' => TRUE,
);
$properties['notify_emails'] = array(
'label' => t("Notification Emails"),
'description' => t("Emails to notify"),
'getter callback' => 'entityformtype_metadata_get_properties',
'type' => 'text',
'computed' => TRUE,
);
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 | ||
EntityformTypeMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |