You are here

function hook_views_preview_info_alter in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views.api.php \hook_views_preview_info_alter()
  2. 6.2 docs/docs.php \hook_views_preview_info_alter()
  3. 7.3 views.api.php \hook_views_preview_info_alter()

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 760
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
}