You are here

function kaltura_is_kaltura_field in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/field_kaltura/field_kaltura.module \kaltura_is_kaltura_field()
  2. 6.2 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 622
kaltura integration module - functions to provide kaltura as CCK field

Code

function kaltura_is_kaltura_field($field_name) {
  $query = 'SELECT type FROM {content_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;
}