Commit fdb9236f authored by merlinofchaos's avatar merlinofchaos

#126135: Restore missing views_pre_query (may never have made it into this version?)

parent b057aef3
......@@ -127,6 +127,7 @@ Views 4.7.x-dev
o #119463: Double check_plain on breadcrumbs for Views' titles.
o #104941: Inline args URL cache not getting cleared when a view is saved.
o #124789: Disable delete button on filters that have been exposed so people stop trying to delete them.
o #126135: Restore missing views_pre_query (may never have made it into this version?)
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -727,6 +727,12 @@ function views_build_view($type, &$view, $args = array(), $use_pager = false, $l
ob_end_clean();
}
// Call a hook that'll let modules modify the view query before it is created
foreach (module_implements('views_pre_query') as $module) {
$function = $module .'_views_pre_query';
$output .= $function($view);
}
$info = _views_get_query($view, $args);
if ($info['fail']) {
......
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