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();