nodereference_allowed_values($field)
contributions/cck/modules/nodereference/nodereference.module, line 648
Implementation of hook_allowed_values().
<?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;
}
?>