Commit 705e475c authored by moshe weitzman's avatar moshe weitzman

move hook_devel_caches() from views_query.inc to views.module. The hook was...

move hook_devel_caches() from views_query.inc to views.module. The hook was often not found because views_query.inc is conditionally included. i added a comment explaining this.
parent 581ce15c
......@@ -2122,3 +2122,8 @@ function views_form_alter($form_id, &$form) {
views_invalidate_cache();
}
}
// An implementation of hook_devel_caches() from devel.module. Must be in views.module so it always is included.
function views_devel_caches() {
return array('cache_views');
}
\ No newline at end of file
......@@ -329,9 +329,4 @@ function _views_get_style_plugins($titles = false) {
}
}
return ($titles ? $views_style_plugins['title'] : $views_style_plugins['base']);
}
// An implementation of hook_devel_caches() from devel.module
function views_devel_caches() {
return array('cache_views');
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment