You are here

function redhen_fields_email_data_property_info in RedHen CRM 7

Defines info for the properties of the redhen_email field structure.

1 call to redhen_fields_email_data_property_info()
redhen_fields_email_property_info_callback in modules/redhen_fields/redhen_fields.module
Property callback for redhen_email field.

File

modules/redhen_fields/redhen_fields.module, line 48
Defines email, phone and address field types for RedHen CRM.

Code

function redhen_fields_email_data_property_info($name = NULL) {
  $properties = array();
  $properties['value'] = array(
    'type' => 'text',
    'label' => t('Email'),
    'description' => 'Email address',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['default'] = array(
    'type' => 'integer',
    'label' => t('Default'),
    'description' => 'Is this value the default email',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['hold'] = array(
    'type' => 'integer',
    'label' => t('Hold'),
    'description' => 'Hold on this email address',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['bulk'] = array(
    'type' => 'integer',
    'label' => t('Bulk'),
    'description' => 'Bulk mailing address',
    'setter callback' => 'entity_property_verbatim_set',
  );
  $properties['label_id'] = array(
    'type' => 'integer',
    'label' => t('Label'),
    'description' => 'Label ID for this address',
    'setter callback' => 'entity_property_verbatim_set',
  );
  return $properties;
}