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
ef4a8ae8
Commit
ef4a8ae8
authored
5 years ago
by
yashodha
Browse files
Options
Downloads
Patches
Plain Diff
add documentation for alterAdminPanel hook
parent
6d8db2d1
No related branches found
Branches containing commit
No related tags found
1 merge request
!657
add documentation for alterAdminPanel hook
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_alterAdminPanel.md
+26
-0
26 additions, 0 deletions
docs/hooks/hook_civicrm_alterAdminPanel.md
with
26 additions
and
0 deletions
docs/hooks/hook_civicrm_alterAdminPanel.md
0 → 100644
+
26
−
0
View file @
ef4a8ae8
# hook_civicrm_alterAdminPanel
## Summary
This hook is invoked after all the panels and items on Administer CiviCRM screen have been
generated and allows for direct manipulation of these items and panels.
## Definition
hook_civicrm_alterAdminPanel(&adminPanel)
## Parameters
-
array adminPanel - array of panels on Adminster CiviCRM screen
## Returns
## Example
/**
* Alter panels on administer CiviCRM screen
*/
function example_civicrm_alterAdminPanel(&$adminPanel) {
// don't want to show Multi Site Settings to users as a configuration option
unset($adminPanel['System_Settings']['fields']['weight}.Multi Site Settings']);
}
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