function petreference_allowed_values in Previewable email templates 6
Implementation of hook_allowed_values().
File
- modules/
petreference/ petreference.module, line 695 - Defines a field type for referencing pet template to a node.
Code
function petreference_allowed_values($field) {
$references = _petreference_potential_references($field);
$options = array();
foreach ($references as $key => $value) {
$options[$key] = $value['rendered'];
}
$options = array(
'' => theme('petreference_none', $field),
) + $options;
return $options;
}