function hook_views_preview_info_alter


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 views.api.php hook_views_preview_info_alter(&$rows, $view)
cle7 views.api.php hook_views_preview_info_alter(&$rows, $view)
elmsmedia7 views.api.php hook_views_preview_info_alter(&$rows, $view)
icor7 views.api.php hook_views_preview_info_alter(&$rows, $view)
meedjum_blog7 views.api.php hook_views_preview_info_alter(&$rows, $view)
mooc7 views.api.php hook_views_preview_info_alter(&$rows, $view)

Alter the information box that (optionally) appears with a view preview, including query and performance statistics.

This hook should be placed in and it will be auto-loaded. must be in the directory specified by the 'path' key returned by MODULENAME_views_api(), or the same directory as the .module file, if 'path' is unspecified.

Warning: $view is not a reference in PHP4 and cannot be modified here. But it IS a reference in PHP5, and can be modified. Please be careful with it.


$rows: An associative array with two keys:

  • query: An array of rows suitable for theme('table'), containing information about the query and the display title and path.
  • statistics: An array of rows suitable for theme('table'), containing performance statistics.

$view: The view object.

See also


Related topics

1 invocation of hook_views_preview_info_alter()
views_ui_preview in sites/all/modules/ulmus/views/includes/
Returns the results of the live preview.


sites/all/modules/ulmus/views/views.api.php, line 1040
Describe hooks provided by the Views module.


function hook_views_preview_info_alter(&$rows, $view) {
  // Adds information about the tables being queried by the view to the query
  // part of the info box.
  $rows['query'][] = array(
    t('<strong>Table queue</strong>'),
    count($view->query->table_queue) . ': (' . implode(', ', array_keys($view->query->table_queue)) . ')',



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.