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