You are here

function nodereference_allowed_values in Content Construction Kit (CCK) 6.2

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

Implementation of hook_allowed_values().

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

File

modules/nodereference/nodereference.module, line 765
Defines a field type for referencing one node from another.

Code

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