Having a views result in raw output
Your module can load and execute the view itself. You can get the results from the view without changing the display.

// Load the view
$myview = views_get_view('my_view');
// Set arguments if you need to
$myview-&gt;set_arguments(array($code));
// Execute the query
$myview-&gt;execute();        
// Loop over the results
foreach ($myview-&gt;result as $row) {
  // The fields are properties of the row
  $x = $row-&gt;my_field;
}