function domain_entity_field_widget_info in Domain Access Entity 7
Implements hook_field_widget_info().
File
- ./
domain_entity.module, line 491 - Defines field (e.g. domain_entity) for entities, and access query alter.
Code
function domain_entity_field_widget_info() {
return array(
DOMAIN_ENTITY_BEHAVIOR_AUTO => array(
'label' => t('Affiliate automatically created entity to a value (no widget on entity creation form, auto-assignation)'),
'field types' => array(
'domain_entity',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
// This widget allow multiple domain attachment.
DOMAIN_ENTITY_BEHAVIOR_USER => array(
'label' => t('User choose affiliate, with a default value (form widget on the entity creation form)'),
'field types' => array(
'domain_entity',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}