function _user_reference_potential_references_views in References 7.2
Helper function for user_reference_potential_references().
Case of Views-defined referenceable users.
1 call to _user_reference_potential_references_views()
- user_reference_potential_references in user_reference/
user_reference.module - Retrieves an array of candidate referenceable users.
File
- user_reference/
user_reference.module, line 878 - Defines a field type for referencing a user from a node.
Code
function _user_reference_potential_references_views($field, $options) {
$settings = $field['settings']['view'];
$options['title_field'] = 'name';
return references_potential_references_view('user', $settings['view_name'], $settings['display_name'], $settings['args'], $options);
}