You are here

function kaltura_extract_fields_from_view in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_extract_fields_from_view()
  2. 6.2 plugins/kaltura_playlist/kaltura_playlist.module \kaltura_extract_fields_from_view()
1 call to kaltura_extract_fields_from_view()
kaltura_get_view_raw_data in plugins/kaltura_playlist/kaltura_playlist.module

File

plugins/kaltura_playlist/kaltura_playlist.module, line 240

Code

function kaltura_extract_fields_from_view($view) {
  $all_fields = $view->display['default']->display_options['fields'];
  foreach ($all_fields as $field_name => $data) {
    if ($data['exclude'] == 0) {
      $fields[$data['table'] . '_' . $field_name] = $data['table'] . '_' . $field_name;
    }
  }
  return $fields;
}