function name_field_get_options in Name Field 7
Name autocomplete data sources callback.
Generates a full listing for title and generational options.
Parameters
array $field: The field requesting the data.
array $component: The key that the data has been requested for.
mixed $arguments: Additional arguments defined in hook_name_data_sources().
Return value
array The matches ready to use directly in the autocomplete response.
2 calls to name_field_get_options()
- name_field_autocomplete_query in ./
name.module - Name autocomplete sources query callback.
- _webform_render_name in includes/
webform.components.inc - Implements Webform callback _webform_render_COMPONENT().
2 string references to 'name_field_get_options'
- hook_name_data_sources in ./
name.api.php - Defines available name field autocomplete sources.
- name_name_data_sources in ./
name.module - Implements hook_name_data_sources().
File
- ./
name.module, line 1144 - Defines an API for displaying and inputing names.
Code
function name_field_get_options($field, $component = 'title', $arguments = array()) {
module_load_include('inc', 'name', 'includes/name.content');
return _name_field_get_options($field, $component, $arguments);
}