You are here

function userreference_allowed_values in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 modules/userreference/userreference.module \userreference_allowed_values()
  2. 6 modules/userreference/userreference.module \userreference_allowed_values()

Implementation of hook_allowed_values().

1 call to userreference_allowed_values()
content.devel.inc in includes/content.devel.inc
Functions needed for Devel module integration.

File

modules/userreference/userreference.module, line 630
Defines a field type for referencing a user from a node.

Code

function userreference_allowed_values($field) {
  $references = _userreference_potential_references($field);
  $options = array();
  foreach ($references as $key => $value) {
    $options[$key] = $value['rendered'];
  }
  return $options;
}