You are here

function userreference_allowed_values in Content Construction Kit (CCK) 6

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

Implementation of hook_allowed_values().

File

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

Code

function userreference_allowed_values($field) {
  $options = _userreference_potential_references($field);
  if (!$field['required']) {
    $options = array(
      'none' => '<' . t('none') . '>',
    ) + $options;
  }
  return $options;
}