Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
userreference_allowed_values($field)
contributions/cck/modules/userreference/userreference.module, line 569
Implementation of hook_allowed_values().
<?php
function userreference_allowed_values($field) {
$references = _userreference_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;
}
?>