summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/view.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/includes/view.inc b/includes/view.inc
index 09f9831..538778b 100644
--- a/includes/view.inc
+++ b/includes/view.inc
@@ -1041,19 +1041,17 @@ class view extends views_db_object {
views_set_current_view($this);
$display_id = $this->current_display;
- // Let modules modify the view just prior to executing it.
- foreach (module_implements('views_pre_view') as $module) {
- $function = $module . '_views_pre_view';
- $function($this, $display_id, $args);
- }
-
// Prepare the view with the information we have, but only if we were
// passed arguments, as they may have been set previously.
if ($args) {
$this->set_arguments($args);
}
-// $this->attach_displays();
+ // Let modules modify the view just prior to executing it.
+ foreach (module_implements('views_pre_view') as $module) {
+ $function = $module . '_views_pre_view';
+ $function($this, $display_id, $this->args);
+ }
// Allow the display handler to set up for execution
$this->display_handler->pre_execute();