function user_reference_field_widget_info in References 7.2
Implements hook_field_widget_info().
File
- user_reference/
user_reference.module, line 587 - Defines a field type for referencing a user from a node.
Code
function user_reference_field_widget_info() {
return array(
'user_reference_autocomplete' => array(
'label' => t('Autocomplete text field'),
'description' => t('Display the list of referenceable users as a textfield with autocomplete behaviour.'),
'field types' => array(
'user_reference',
),
'settings' => array(
'autocomplete_match' => 'contains',
'limit' => 10,
'size' => 60,
'autocomplete_path' => 'user_reference/autocomplete',
),
),
);
}