function kaltura_is_kaltura_field in Kaltura 5
Same name and namespace in other branches
- 6.2 plugins/field_kaltura/field_kaltura.module \kaltura_is_kaltura_field()
- 6 plugins/field_kaltura/field_kaltura.module \kaltura_is_kaltura_field()
1 call to kaltura_is_kaltura_field()
- field_kaltura_nodeapi in plugins/
field_kaltura/ field_kaltura.module
File
- plugins/
field_kaltura/ field_kaltura.module, line 586 - kaltura integration module - functions to provide kaltura as CCK field
Code
function kaltura_is_kaltura_field($field_name) {
$query = 'SELECT type FROM {node_field} WHERE field_name = \'%s\'';
$result = db_fetch_object(db_query($query, $field_name));
$my_fields = field_kaltura_field_info();
if (array_key_exists($result->type, $my_fields)) {
return $result->type;
}
return FALSE;
}