function name_name_data_sources in Name Field 7
Implements hook_name_data_sources().
@todo Consider using field data as a source.
File
- ./
name.module, line 1900 - Defines an API for displaying and inputing names.
Code
function name_name_data_sources() {
return array(
'title' => array(
'name' => t('Title options'),
'components' => array(
'title',
),
'autocomplete callback' => 'name_field_autocomplete_query',
'autocomplete arguments' => array(
'title',
),
'list callback' => 'name_field_get_options',
),
'generational' => array(
'name' => t('Generational options'),
'components' => array(
'generational',
),
'autocomplete callback' => 'name_field_autocomplete_query',
'autocomplete arguments' => array(
'generational',
),
'list callback' => 'name_field_get_options',
),
);
}