function hook_views_preview_info_alter

3.x views.api.php hook_views_preview_info_alter(&$rows, $view)
2.x docs.php hook_views_preview_info_alter(&$rows, $view)

This hook should be placed in MODULENAME.views.inc and it will be auto-loaded. This must either be in the same directory as the .module file or in a subdirectory named 'includes'.

Alter the rows that appear with a view, which includes path and query information. The rows are suitable for theme('table').

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.

See also

theme_table

Related topics

1 invocation of hook_views_preview_info_alter()
views_ui_preview in includes/admin.inc
Page callback for the live preview.

File

docs/docs.php, line 714
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_views_preview_info_alter(&$rows, $view) {
  // example code here
}