You are here

class EntityformTypeMetadataController in Entityform 7

Same name and namespace in other branches
  1. 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

Namesort descending Modifiers Type Description Overrides
EntityDefaultMetadataController::$type protected property
EntityDefaultMetadataController::bundleOptionsList public static function A options list callback returning all bundles for an entity type.
EntityDefaultMetadataController::convertSchema protected function Return a set of properties for an entity based on the schema definition
EntityDefaultMetadataController::__construct public function
EntityformTypeMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo