You are here

function _jeditable_get_node_reference_field_values in jEditable inline content editing 6

Same name and namespace in other branches
  1. 6.2 jeditable.module \_jeditable_get_node_reference_field_values()

Get potential node references for a field.

Parameters

$field_name: The name of the field.

Return value

An associative array of values suitable for a form select list.

1 call to _jeditable_get_node_reference_field_values()
_jeditable_ajax_load in ./jeditable.module
Helper function to load a list of select values

File

./jeditable.module, line 498
jeditable.module

Code

function _jeditable_get_node_reference_field_values($field) {
  $values = _nodereference_potential_references($field);
  $defaults = array();
  foreach ($values as $key => $value) {
    $defaults[$key] = $value['rendered'];
  }
  return $defaults;
}