Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
Docs
Developer Documentation
Commits
57f7da4c
Commit
57f7da4c
authored
5 years ago
by
Monish Deb
Browse files
Options
Downloads
Patches
Plain Diff
update navigationMenu hook example to show use of 'attr' parameter
parent
7bb537e8
No related branches found
No related tags found
1 merge request
!734
update navigationMenu hook example to show use of 'attr' parameter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_navigationMenu.md
+2
-1
2 additions, 1 deletion
docs/hooks/hook_civicrm_navigationMenu.md
with
2 additions
and
1 deletion
docs/hooks/hook_civicrm_navigationMenu.md
+
2
−
1
View file @
57f7da4c
...
...
@@ -134,7 +134,8 @@ function donortrends_civicrm_navigationMenu(&$params) {
'separator'
=>
1
,
'parentID'
=>
$reportID
,
'navID'
=>
$navId
,
'active'
=>
1
'active'
=>
1
,
'attr'
=>
[
'target'
=>
'_blank'
],
// if you want to open this menu link in a new page, then add '_target' attribute
),
);
}
...
...
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