function hook_views_preview_info_alter
Same name in other branches
- 7.x-3.x 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
Code
function hook_views_preview_info_alter(&$rows, $view) {
// example code here
}