Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
views
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
views
Commits
cac7310b
Commit
cac7310b
authored
Jan 18, 2007
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
#105620
: New (undocumented) hook_views_tables_alter and hook_views_arguments_alter.
parent
a97d9fc8
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+4
-0
4 additions, 0 deletions
CHANGELOG.txt
views_cache.inc
+5
-0
5 additions, 0 deletions
views_cache.inc
with
9 additions
and
0 deletions
CHANGELOG.txt
+
4
−
0
View file @
cac7310b
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
views_cache.inc
+
5
−
0
View file @
cac7310b
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment