Contributions API

nodereference_allowed_values

Definition

nodereference_allowed_values($field)
contributions/cck/modules/nodereference/nodereference.module, line 648

Description

Implementation of hook_allowed_values().

Code

<?php
function nodereference_allowed_values($field) {
  $references = _nodereference_potential_references($field);

  $options = array();
  foreach ($references as $key => $value) {
    // Views theming runs check_plain (htmlentities) on the values.
    // We reverse that with html_entity_decode.
    $options[$key] = html_entity_decode(strip_tags($value['rendered']));
  }
  return $options;
}
?>