function noderefcreate_field_widget_info in Node Reference Create 7
Implements hook_field_widget_info().
File
- ./
noderefcreate.module, line 13 - Defines a widget type for referencing one node from another and creating a new one if the provided doesn't exists.
Code
function noderefcreate_field_widget_info() {
return array(
'noderefcreate_autocomplete' => array(
'label' => t('Autocomplete text field with create'),
'description' => t('Display the list of referenceable nodes as a textfield with autocomplete behaviour, if the node doesn´t exist, create it.'),
'field types' => array(
'node_reference',
),
'settings' => array(
'autocomplete_match' => 'contains',
'size' => 60,
'autocomplete_path' => 'node_reference/autocomplete',
),
),
);
}