Skip to content
Snippets Groups Projects
Commit ef4a8ae8 authored by yashodha's avatar yashodha
Browse files

add documentation for alterAdminPanel hook

parent 6d8db2d1
No related branches found
No related tags found
1 merge request!657add documentation for alterAdminPanel hook
# 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']);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment