summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module')
-rw-r--r--kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module20
1 files changed, 18 insertions, 2 deletions
diff --git a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module
index 18536b9..f6026b8 100644
--- a/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module
+++ b/kolab.org/www/drupal-7.15/sites/all/modules/views/tests/views_test.module
@@ -1,6 +1,11 @@
<?php
/**
+ * @file
+ * Helper module for Views tests.
+ */
+
+/**
* Implements hook_permission().
*/
function views_test_permission() {
@@ -23,14 +28,14 @@ function views_test_views_api() {
}
/**
- * Implements hook_views_data()
+ * Implements hook_views_data().
*/
function views_test_views_data() {
return variable_get('views_test_views_data', array());
}
/**
- * Implements hook_views_plugins()
+ * Implements hook_views_plugins().
*/
function views_test_views_plugins() {
return variable_get('views_test_views_plugins', array());
@@ -43,3 +48,14 @@ function views_test_test_static_access_callback($access) {
function views_test_test_dynamic_access_callback($access, $argument1, $argument2) {
return $access && $argument1 == variable_get('test_dynamic_access_argument1', NULL) && $argument2 == variable_get('test_dynamic_access_argument2', NULL);
}
+
+/**
+ * Implements hook_views_pre_render().
+ */
+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;
+ }
+}