Get the raw result data of a view

Public

views_get_view_result will return you a raw result of a view query. No formatting, just data.

Get raw version
php
  1. /**
  2.  * Get the result of a view.
  3.  *
  4.  * @param string $name
  5.  * The name of the view to retrieve the data from.
  6.  * @param string $display_id
  7.  * The display id. On the edit page for the view in question, you'll find
  8.  * a list of displays at the left side of the control area. "Master"
  9.  * will be at the top of that list. Hover your cursor over the name of the
  10.  * display you want to use. An URL will appear in the status bar of your
  11.  * browser. This is usually at the bottom of the window, in the chrome.
  12.  * Everything after #views-tab- is the display ID, e.g. page_1.
  13.  * @param ...
  14.  * Any additional parameters will be passed as arguments.
  15.  * @return array
  16.  * An array containing an object for each view item.
  17.  */
  18. $raw_result = views_get_view_result($name, $display_id, $args);