function hook_views_post_build


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 views.api.php hook_views_post_build(&$view)
cle7 views.api.php hook_views_post_build(&$view)
elmsmedia7 views.api.php hook_views_post_build(&$view)
icor7 views.api.php hook_views_post_build(&$view)
meedjum_blog7 views.api.php hook_views_post_build(&$view)
mooc7 views.api.php hook_views_post_build(&$view)

This hook is called right after the build process. The query is now fully built, but it has not yet been run through db_rewrite_sql.

Adding output to the view can be accomplished by placing text on $view->attachment_before and $view->attachment_after.


$view: The view object about to be processed.

Related topics

2 functions implement hook_views_post_build()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

cis_connector_views_post_build in sites/all/modules/elmsln_contrib/cis_connector/
Implements hook_views_post_build().
views_bulk_operations_views_post_build in sites/all/modules/ulmus/views_bulk_operations/views_bulk_operations.module
Implements hook_views_post_build().
1 invocation of hook_views_post_build()
view::build in sites/all/modules/ulmus/views/includes/
Build the query for the view.


sites/all/modules/ulmus/views/views.api.php, line 871
Describe hooks provided by the Views module.


function hook_views_post_build(&$view) {
  // If the exposed field 'type' is set, hide the column containing the content
  // type. (Note that this is a solution for a particular view, and makes
  // assumptions about both exposed filter settings and the fields in the view.
  // Also note that this alter could be done at any point before the view being
  // rendered.)
  if ($view->name == 'my_view' && isset($view->exposed_raw_input['type']) && $view->exposed_raw_input['type'] != 'All') {
    // 'Type' should be interpreted as content type.
    if (isset($view->field['type'])) {
      $view->field['type']->options['exclude'] = TRUE;