Commit 5de5446f authored by merlinofchaos's avatar merlinofchaos

#142383: (mfrederickson) hook_views_alter couldn't add new tables

parent ae701c9c
......@@ -9,6 +9,7 @@ Views 5.x-1.6-dev
o #147821: (TimK and gnassar) Fix broken filtering on full node with RSS feeds.
o #149276: (profix898) fix node body mishandling due to changes in Drupal 5 node rendering.
o #142997: (dww) Clear Views cache more often on modules page.
o #142383: (mfrederickson) hook_views_alter couldn't add new tables
Views 5.x-1.6-beta5
Bugs fixed:
......
......@@ -77,12 +77,14 @@ function _views_get_tables($full = false) {
}
else {
$table_data = module_invoke_all('views_tables');
$views_tables['tables'] = $table_data;
// allow modules to alter the definitions supplied others
foreach (module_implements('views_tables_alter') as $module) {
$function = $module . '_views_tables_alter';
$function($table_data);
}
$views_tables['tables'] = $table_data;
foreach ($table_data as $name => $table) {
if (is_array($table['filters'])) {
......
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