Add all the fields to view automatically in csv export I am using entity registration module for node registration.Now i wants to export the registrants.

I am using view export module to export registrants list. Its working fine 

But as the registration fields is different per node i can not add a fix number of field to export.

I am trying to use global php field, its working for single column.

Is there any alternatives?

What other i have tried?

function paticipant_export_views_pre_view(&amp;$view, &amp;$display_id, &amp;$args) {
          if ($view-&gt;name == 'paticipants_export') {
            views_db_object::add_item($view-&gt;current_display, 'field', 
    'field_data_field_first_name_1', 'field_first_name_1', 
$options = array(
            $handler-&gt;display-&gt;display_options['fields']['field_first_name_1']['id'] = 'field_first_name_1',
            $handler-&gt;display-&gt;display_options['fields']['field_first_name_1']['table'] = 'field_data_field_first_name_1',
            $handler-&gt;display-&gt;display_options['fields']['field_first_name_1']['field'] = 'field_first_name_1',

            ), $id = NULL);


          }
        }


Thanks for your suggestion.
This might be a really stupid suggestion but why dont you just edit the view and add all the registration fields manually. The view will have empty cells for fields thats not a part of the registration type at a specific row, but thats something you'll get anyways.

Another way to go is to skip views alltogether and export data with a module of your own using the entity api. You aparently are writing a module to override view fields above so you have already started down that road (so to speak)