You are here

function views_test_views_pre_render in Views (for Drupal 7) 7.3

Implements hook_views_pre_render().

File

tests/views_test.module, line 59
Helper module for Views tests.

Code

function views_test_views_pre_render(&$view) {
  if ($view->name == 'test_cache_header_storage') {
    drupal_add_js(drupal_get_path('module', 'views_test') . '/views_cache.test.js');
    drupal_add_css(drupal_get_path('module', 'views_test') . '/views_cache.test.css');
    $view->pre_render_called = TRUE;
  }
}