You are here

function _node_reference_potential_references_views in References 7.2

Helper function for node_reference_potential_references().

Case of Views-defined referenceable nodes.

1 call to _node_reference_potential_references_views()
node_reference_potential_references in node_reference/node_reference.module
Retrieves an array of candidate referenceable nodes.

File

node_reference/node_reference.module, line 884
Defines a field type for referencing one node from another.

Code

function _node_reference_potential_references_views($field, $options) {
  $settings = $field['settings']['view'];
  $options['title_field'] = 'title';
  return references_potential_references_view('node', $settings['view_name'], $settings['display_name'], $settings['args'], $options);
}