public function EntityformTypeMetadataController::entityPropertyInfo in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.info.inc \EntityformTypeMetadataController::entityPropertyInfo()
Overrides EntityDefaultMetadataController::entityPropertyInfo
File
- ./
entityform.info.inc, line 58 - Provides Entity metadata integration.
Class
- EntityformTypeMetadataController
- Extend the defaults.
Code
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;
}