function hook_views_pre_view in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 8.3 views.api.php \hook_views_pre_view()
- 6.2 docs/docs.php \hook_views_pre_view()
- 7.3 views.api.php \hook_views_pre_view()
This hook is called at the very beginning of views processing, before anything is done.
Adding output to the view can be accomplished by placing text on $view->attachment_before and $view->attachment_after.
Related topics
1 invocation of hook_views_pre_view()
- view::pre_execute in includes/
view.inc - Run attachments and let the display do what it needs to do prior to running.
File
- docs/
docs.php, line 627 - 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_pre_view(&$view, &$display_id, &$args) {
// example code here
}