function hook_views_pre_view
3.x views.api.php | hook_views_pre_view(&$view, &$display_id, &$args) |
2.x docs.php | hook_views_pre_view(&$view, &$display_id, &$args) |
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 581 - 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
}