user_dashboard.php
Table of Contents
Functions
- user_dashboard_civicrm_config() : void
- Implements hook_civicrm_config().
- user_dashboard_civicrm_install() : void
- Implements hook_civicrm_install().
- user_dashboard_civicrm_enable() : void
- Implements hook_civicrm_enable().
- user_dashboard_civicrm_post() : mixed
- Tag SavedSearches with the "UserDashboard" tag.
Functions
user_dashboard_civicrm_config()
Implements hook_civicrm_config().
user_dashboard_civicrm_config(mixed &$config) : void
Parameters
- $config : mixed
Tags
user_dashboard_civicrm_install()
Implements hook_civicrm_install().
user_dashboard_civicrm_install() : void
Tags
user_dashboard_civicrm_enable()
Implements hook_civicrm_enable().
user_dashboard_civicrm_enable() : void
Tags
user_dashboard_civicrm_post()
Tag SavedSearches with the "UserDashboard" tag.
user_dashboard_civicrm_post(mixed $action, mixed $entity, mixed $id, mixed $savedSearch) : mixed
The reason for using this hook is that it's write-once (just during insert), and after that the user can freely tag and untag searches.
If the tag was part of the .mgd.php file for each search then it would "stick" and the user would not be able to remove tags without their changes reverting on every managed reconcile. Also, adding it to the .mgd.php file requires hacking the exported api call with a 'chain', etc.
Parameters
- $action : mixed
- $entity : mixed
- $id : mixed
- $savedSearch : mixed