You are here

function _jeditable_get_user_reference_field_values in jEditable inline content editing 6.2

Same name and namespace in other branches
  1. 6 jeditable.module \_jeditable_get_user_reference_field_values()

Get potential user references for a field.

Parameters

$field: The field of interest.

Return value

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

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

File

./jeditable.module, line 527

Code

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