Documentation

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_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
Tags
implements

CRM_Utils_Hook::post()


        
On this page

Search results