hook_views_pre_view
Drupal 7 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 function implements hook_views_pre_view()
1 invocation of hook_views_pre_view()
File
- sites/
all/ modules/ views/ docs/ views.api.php, line 604 - 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
}

