function og_field_widget_info in Organic groups 7
Same name and namespace in other branches
- 7.2 includes/og.field.inc \og_field_widget_info()
Implements hook_field_widget_info().
File
- ./
og.field.inc, line 94 - Field module functionality for the Organic groups module.
Code
function og_field_widget_info() {
return array(
OG_AUDIENCE_WIDGET => array(
'label' => t('Group audience'),
'field types' => array(
'group',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
),
'settings' => array(
'opt_group' => 'auto',
),
),
OG_AUDIENCE_AUTOCOMPLETE_WIDGET => array(
'label' => t('Autocomplete text field'),
'description' => t('Display the list of referenceable groups as a textfield with autocomplete behaviour.'),
'field types' => array(
'group',
),
'settings' => array(
'autocomplete_match' => 'contains',
'size' => 60,
'autocomplete_path' => 'group/autocomplete',
),
),
);
}