hook_views_pre_view

  1. drupal
    1. 6 docs.php function
    2. 7 views.api.php function
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
}