Commit cac7310b authored by merlinofchaos's avatar merlinofchaos

#105620: New (undocumented) hook_views_tables_alter and hook_views_arguments_alter.

parent a97d9fc8
......@@ -115,3 +115,7 @@ Views --dev
o 107218: 107217: Fixed some E_NOTICE errors.
o 106464: Taxonomy links showed up as Array | Array | Array rather than the taxonomy terms.
New features:
o 105620: New (undocumented) hook_views_tables_alter and hook_views_arguments_alter.
......@@ -34,6 +34,9 @@ function _views_get_arguments($titles = false) {
}
else {
$arguments = module_invoke_all('views_arguments');
// allow modules to alter the arguments supplied others
$arguments = module_invoke_all('views_arguments_alter', $arguments);
uasort($arguments, '_views_sort_arrays');
foreach ($arguments as $name => $arg) {
if ($arg['option'] && !is_array($arg['option'])) {
......@@ -71,6 +74,8 @@ function _views_get_tables($full = false) {
}
else {
$table_data = module_invoke_all('views_tables');
// allow modules to alter the definitions supplied others
$table_data = module_invoke_all('views_tables_alter', $table_data);
$views_tables['tables'] = $table_data;
foreach ($table_data as $name => $table) {
......
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