function context_field_field_widget_info in Context Field 7
Implements hook_field_widget_info().
File
- ./
context_field.module, line 190 - Context Field
Code
function context_field_field_widget_info() {
return array(
'context_field' => array(
'label' => t('Auto Create'),
'field types' => array(
'context_field',
),
'settings' => array(
'form_element' => array(
'user_toggle' => 0,
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_DEFAULT,
),
),
'context_field_default' => array(
'label' => t('Use Default'),
'field types' => array(
'context_field',
),
'settings' => array(
'form_element' => array(
'user_toggle' => 0,
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_DEFAULT,
),
),
'context_field_autocomplete' => array(
'label' => t('Autocomplete'),
'field types' => array(
'context_field',
),
'settings' => array(
'form_element' => array(
'allow_create' => 0,
'category' => '',
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
'context_field_select' => array(
'label' => t('Select'),
'field types' => array(
'context_field',
),
'settings' => array(
'form_element' => array(
'allow_create' => 0,
'category' => '',
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}