function _field_kaltura_allowed_values in Kaltura 6
Same name and namespace in other branches
- 6.2 plugins/field_kaltura/field_kaltura.module \_field_kaltura_allowed_values()
File
- plugins/
field_kaltura/ field_kaltura.module, line 300 - kaltura integration module - functions to provide kaltura as CCK field
Code
function _field_kaltura_allowed_values($element) {
$field = content_fields($element['#field_name'], $element['#type_name']);
if (($allowed_values = content_allowed_values($field)) && isset($allowed_values[$element['#item']['value']])) {
return $allowed_values[$element['#item']['value']];
}
}