CRM_Utils_Hook_Joomla
class CRM_Utils_Hook_Joomla extends CRM_Utils_Hook
Constants
DASHBOARD_BELOW |
|
DASHBOARD_ABOVE |
|
DASHBOARD_REPLACE |
|
SUMMARY_BELOW |
|
SUMMARY_ABOVE |
|
SUMMARY_REPLACE |
create your own summaries |
Properties
static null | $_nullObject | Object to pass when an object is required to be passed by params. | from CRM_Utils_Hook |
protected CRM_Utils_Cache_Interface | $cache | from CRM_Utils_Hook |
Methods
Constructor and getter for the singleton instance.
No description
Invoke a hook.
No description
Build the list of modules to be processed for hooks.
Run hooks.
This hook is called before a db write on some core objects.
This hook is called after a db write on some core objects.
This hook retrieves links from other modules and injects it into.
This hook is invoked during the CiviCRM form preProcess phase.
This hook is invoked when building a CiviCRM form. This hook should also be used to set the default values of a form element
This hook is invoked when a CiviCRM form is submitted. If the module has injected any form elements, this hook should save the values in the database
This hook is invoked during all CiviCRM form validation. An array of errors detected is returned. Else we assume validation succeeded.
This hook is called after a db write on a custom table.
This hook is called when composing the ACL where clause to restrict visibility of contacts to the logged in user
This hook is called when composing the ACL where clause to restrict visibility of contacts to the logged in user
This hook is called when building the menu table.
(Experimental) This hook is called when build the menu table.
A theme is a set of CSS files which are loaded on CiviCRM pages. To register a new theme, add it to the $themes array. Use these properties:
The activeTheme hook determines which theme is active.
This hook is called for declaring managed entities via API.
This hook is called when rendering the dashboard (q=civicrm/dashboard)
This hook is called before storing recently viewed items.
Determine how many other records refer to a given record.
This hook is called when building the amount structure for a Contribution or Event Page.
This hook is called when building the state list for a particular country.
This hook is called when rendering the tabs for a contact (q=civicrm/contact/view)c
This hook is called when rendering the tabs used for events and potentially contribution pages, etc.
This hook is called when sending an email / printing labels
This hook allows modification of the admin panels
This hook is called when sending an email / printing labels to get the values for all the tokens returned by the 'tokens' hook
This hook is called before a CiviCRM Page is rendered. You can use this hook to insert smarty variables in a template
This hook is called after a copy of an object has been made. The current objects are Event, Contribution Page and UFGroup
This hook is called when a contact unsubscribes from a mailing. It allows modules to override what the contacts are removed from.
This hook is called when CiviCRM needs to edit/display a custom field with options
Hook for modifying field options
This hook is called to display the list of actions allowed after doing a search.
This hook is called when composing a mailing. You can include / exclude other groups as needed.
(Experimental) Modify the list of template-types used for CiviMail composition.
This hook is called when composing the array of membershipTypes and their cost during a membership registration (new or renewal).
This hook is called when rendering the contact summary.
Use this hook to populate the list of contacts returned by Contact Reference custom fields.
Hook definition for altering payment parameters before talking to a payment processor back end.
This hook is called when an email is about to be sent by CiviCRM.
This hook is called when membership status is being calculated.
This hook is called after getting the content of the mail and before tokenizing it.
This hook is called when rendering the Manage Case screen.
This hook is called when locating CiviCase types.
This hook is called soon after the CRM_Core_Config object has ben initialized.
This hooks allows to change option values.
This hook allows modification of the navigation menu.
This hook allows modification of the data used to perform merging of duplicates.
This hook allows modification of the data calculated for merging locations.
This hook provides a way to override the default privacy behavior for notes.
This hook is called before record is exported as CSV.
This hook allows modification of the queries constructed from dupe rules.
Check for duplicate contacts
This hook is called AFTER EACH email has been processed by the script bin/EmailProcessor.php
This hook is called after a row has been processed and the record (and associated records imported
This hook is called when API permissions are checked (cf. civicrm_api3_api_check_permission() in api/v3/utils.php and _civicrm_api3_permissions() in CRM/Core/DAO/permissions.php).
This hook allows user to customize context menu Actions on contact summary page.
This hook is called from CRM_Core_Selector_Controller through which all searches in civicrm go.
This hook is called when uf groups are being built for a module.
This hook is called when we are determining the contactID for a specific email address
Hook definition for altering the generation of Mailing Labels.
This hooks allows alteration of generated page content.
This hooks allows alteration of the tpl file used to generate content. It differs from the altercontent hook as the content has already been rendered through the tpl at that point
This hook collects the trigger definition from all components.
This hook allows changes to the spec of which tables to log.
This hook is called to drive database upgrades for extension-modules.
This hook is called when an email has been successfully sent by CiviCRM, but not on an error.
This hook is called when a CiviMail mailing has completed
This hook is called when Settings specifications are loaded.
This hook is called when Settings have been loaded from the xml It is an opportunity for hooks to alter the data
This hook is called before running an api call.
This hook is called when loading CMS permissions; use this hook to modify the array of system permissions for CiviCRM.
This hook is called when checking permissions; use this hook to dynamically escalate user permissions in certain use cases (cf. CRM-19256).
This hook is called for declaring managed entities via API.
This hook is called while preparing a profile form.
This hook is called while validating a profile form submission.
This hook is called processing a valid profile form submission.
This hook is called while preparing a read-only profile screen
This hook is called while preparing a list of contacts (based on a profile)
This hook is invoked when building a CiviCRM name badge.
This hook is called before encoding data in barcode.
Modify or replace the Mailer object used for outgoing mail.
Deprecated: Misnamed version of alterMailer(). Remove post-4.7.x.
This hook is called while building the core search query, so hook implementers can provide their own query objects which alters/extends core search.
This hook is called while viewing contact dashboard.
This hook is called before a case merge (or a case reassign)
This hook is called after a case merge (or a case reassign)
Issue CRM-14276 Add a hook for altering the display name
Modify the CRM_Core_Resources settings data.
EXPERIMENTAL: This hook allows one to register additional Angular modules
This hook is called when building a link to a semi-static asset.
This hook is called whenever the system builds a new copy of semi-static asset.
Modify the CiviCRM container - add new services, parameters, extensions, etc.
This hook is called when a query string of the CSV Batch export is generated.
This hook is called to alter Deferred revenue item values just before they are inserted in civicrm_financial_trxn table
This hook is called when the entries of the CSV Batch export are mapped.
This hook is called when core resources are being loaded
Allows the list of filters on the EntityRef widget to be altered.
This hook is called for bypass a few civicrm urls from IDS check.
This hook is called when a geocoder's format method is called.
This hook is called to modify api params of EntityRef form field
This hook is called after a scheduled job is executed
This hook is called before and after constructing mail recipients.
ALlow Extensions to custom process IPN hook data such as sending Google Analyitcs information based on the IPN
Details
in CRM_Utils_Hook at line 93
static CRM_Utils_Hook
singleton(bool $fresh = FALSE)
Constructor and getter for the singleton instance.
in CRM_Utils_Hook at line 107
__construct()
CRM_Utils_Hook constructor.
at line 69
mixed
invokeViaUF(int $numParams, mixed $arg1, mixed $arg2, mixed $arg3, mixed $arg4, mixed $arg5, mixed $arg6, string $fnSuffix)
in CRM_Utils_Hook at line 166
mixed
invoke(array|int $names, mixed $arg1, mixed $arg2, mixed $arg3, mixed $arg4, mixed $arg5, mixed $arg6, mixed $fnSuffix)
Invoke a hook.
This is a transitional adapter. It supports the legacy syntax but also accepts enough information to support Symfony Event dispatching.
in CRM_Utils_Hook at line 215
array|bool
commonInvoke(array $numParams, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6, $fnSuffix, $fnPrefix)
in CRM_Utils_Hook at line 233
commonBuildModuleList(string $fnPrefix)
Build the list of modules to be processed for hooks.
in CRM_Utils_Hook at line 270
array|bool
runHooks(array $civiModules, string $fnSuffix, int $numParams, mixed $arg1, mixed $arg2, mixed $arg3, mixed $arg4, mixed $arg5, mixed $arg6)
Run hooks.
in CRM_Utils_Hook at line 343
requireCiviModules($moduleList)
in CRM_Utils_Hook at line 374
static null
pre(string $op, string $objectName, int $id, array $params)
This hook is called before a db write on some core objects.
This hook does not allow the abort of the operation
in CRM_Utils_Hook at line 401
static mixed
post(string $op, string $objectName, int $objectId, object $objectRef = NULL)
This hook is called after a db write on some core objects.
in CRM_Utils_Hook at line 432
static null
links(string $op, string $objectName, int $objectId, array $links, int $mask = NULL, array $values = [])
This hook retrieves links from other modules and injects it into.
the view contact tabs
in CRM_Utils_Hook at line 447
static null
preProcess(string $formName, CRM_Core_Form $form)
This hook is invoked during the CiviCRM form preProcess phase.
in CRM_Utils_Hook at line 464
static null
buildForm(string $formName, CRM_Core_Form $form)
This hook is invoked when building a CiviCRM form. This hook should also be used to set the default values of a form element
in CRM_Utils_Hook at line 483
static null
postProcess(string $formName, CRM_Core_Form $form)
This hook is invoked when a CiviCRM form is submitted. If the module has injected any form elements, this hook should save the values in the database
in CRM_Utils_Hook at line 505
static mixed
validateForm(string $formName, array $fields, array $files, array $form, array $errors)
This hook is invoked during all CiviCRM form validation. An array of errors detected is returned. Else we assume validation succeeded.
in CRM_Utils_Hook at line 526
static null
custom(string $op, string $groupID, object $entityID, array $params)
This hook is called after a db write on a custom table.
in CRM_Utils_Hook at line 549
static null
aclWhereClause(int $type, array $tables, array $whereTables, int $contactID, string $where)
This hook is called when composing the ACL where clause to restrict visibility of contacts to the logged in user
in CRM_Utils_Hook at line 572
static null
aclGroup(int $type, int $contactID, string $tableName, array $allGroups, array $currentGroups)
This hook is called when composing the ACL where clause to restrict visibility of contacts to the logged in user
in CRM_Utils_Hook at line 582
static mixed
selectWhereClause(string|CRM_Core_DAO $entity, array $clauses)
in CRM_Utils_Hook at line 599
static null
xmlMenu(array $files)
This hook is called when building the menu table.
in CRM_Utils_Hook at line 614
static null
alterMenu(array $items)
(Experimental) This hook is called when build the menu table.
in CRM_Utils_Hook at line 651
static null
themes(array $themes)
A theme is a set of CSS files which are loaded on CiviCRM pages. To register a new theme, add it to the $themes array. Use these properties:
- ext: string (required)
The full name of the extension which defines the theme.
Ex: "org.civicrm.themes.greenwich".
- title: string (required) Visible title.
- help: string (optional) Description of the theme's appearance.
- url_callback: mixed (optional) A function ($themes, $themeKey, $cssExt, $cssFile) which returns the URL(s) for a CSS resource. Returns either an array of URLs or PASSTHRU. Ex: \Civi\Core\Themes\Resolvers::simple (default) Ex: \Civi\Core\Themes\Resolvers::none
- prefix: string (optional) A prefix within the extension folder to prepend to the file name.
- search_order: array (optional) A list of themes to search. Generally, the last theme should be "fallback" (Civi\Core\Themes::FALLBACK).
- excludes: array (optional) A list of files (eg "civicrm:css/bootstrap.css" or "$ext:$file") which should never be returned (they are excluded from display).
in CRM_Utils_Hook at line 671
static null
activeTheme(string $theme, array $context)
The activeTheme hook determines which theme is active.
in CRM_Utils_Hook at line 698
static null
managed(array $entities)
This hook is called for declaring managed entities via API.
in CRM_Utils_Hook at line 717
static string
dashboard(int $contactID, int $contentPlacement = self::DASHBOARD_BELOW)
This hook is called when rendering the dashboard (q=civicrm/dashboard)
in CRM_Utils_Hook at line 743
static array
recent(array $recentArray)
This hook is called before storing recently viewed items.
in CRM_Utils_Hook at line 764
static mixed
referenceCounts(CRM_Core_DAO $dao, array $refCounts)
Determine how many other records refer to a given record.
in CRM_Utils_Hook at line 783
static null
buildAmount(int $pageType, CRM_Core_Form $form, array $amount)
This hook is called when building the amount structure for a Contribution or Event Page.
in CRM_Utils_Hook at line 797
static null
buildStateProvinceForCountry(array $countryID, $states)
This hook is called when building the state list for a particular country.
in CRM_Utils_Hook at line 815
static null
tabs(array $tabs, int $contactID)
deprecated
deprecated
This hook is called when rendering the tabs for a contact (q=civicrm/contact/view)c
in CRM_Utils_Hook at line 834
static null
tabset(string $tabsetName, array $tabs, array $context)
This hook is called when rendering the tabs used for events and potentially contribution pages, etc.
in CRM_Utils_Hook at line 848
static null
tokens(array $tokens)
This hook is called when sending an email / printing labels
in CRM_Utils_Hook at line 862
static mixed
alterAdminPanel(array $panels)
This hook allows modification of the admin panels
in CRM_Utils_Hook at line 886
static null
tokenValues(array $details, array $contactIDs, int $jobID = NULL, array $tokens = [], string $className = NULL)
This hook is called when sending an email / printing labels to get the values for all the tokens returned by the 'tokens' hook
in CRM_Utils_Hook at line 906
static null
pageRun(object $page)
This hook is called before a CiviCRM Page is rendered. You can use this hook to insert smarty variables in a template
in CRM_Utils_Hook at line 924
static null
copy(string $objectName, object $object)
This hook is called after a copy of an object has been made. The current objects are Event, Contribution Page and UFGroup
in CRM_Utils_Hook at line 949
static mixed
unsubscribeGroups(string $op, int $mailingId, int $contactId, array|int $groups, array|int $baseGroups)
This hook is called when a contact unsubscribes from a mailing. It allows modules to override what the contacts are removed from.
in CRM_Utils_Hook at line 974
static mixed
customFieldOptions(int $customFieldID, array $options, bool $detailedFormat = FALSE, array $selectAttributes = [])
deprecated
deprecated
This hook is called when CiviCRM needs to edit/display a custom field with options
in CRM_Utils_Hook at line 992
static mixed
fieldOptions(string $entity, string $field, array $options, array $params)
Hook for modifying field options
in CRM_Utils_Hook at line 1018
static mixed
searchTasks(string $objectType, array $tasks)
This hook is called to display the list of actions allowed after doing a search.
This allows the module developer to inject additional actions or to remove existing actions.
in CRM_Utils_Hook at line 1031
static mixed
eventDiscount(mixed $form, array $params)
in CRM_Utils_Hook at line 1050
static mixed
mailingGroups(mixed $form, array $groups, array $mailings)
This hook is called when composing a mailing. You can include / exclude other groups as needed.
in CRM_Utils_Hook at line 1067
static mixed
mailingTemplateTypes(array $types)
(Experimental) Modify the list of template-types used for CiviMail composition.
in CRM_Utils_Hook at line 1088
static mixed
membershipTypeValues(mixed $form, array $membershipTypes)
This hook is called when composing the array of membershipTypes and their cost during a membership registration (new or renewal).
Note the hook is called on initial page load and also reloaded after submit (PRG pattern). You can use it to alter the membership types when first loaded, or after submission (for example if you want to gather data in the form and use it to alter the fees).
in CRM_Utils_Hook at line 1108
static string
summary(int $contactID, mixed $content, int $contentPlacement = self::SUMMARY_BELOW)
This hook is called when rendering the contact summary.
in CRM_Utils_Hook at line 1139
static mixed
contactListQuery(mixed $query, string $queryText, string $context, int $id)
Use this hook to populate the list of contacts returned by Contact Reference custom fields.
By default, Contact Reference fields will search on and return all CiviCRM contacts. If you want to limit the contacts returned to a specific group, or some other criteria - you can override that behavior by providing a SQL query that returns some subset of your contacts. The hook is called when the query is executed to get the list of contacts to display.
in CRM_Utils_Hook at line 1168
static mixed
alterPaymentProcessorParams(CRM_Core_Payment $paymentObj, array $rawParams, array $cookedParams)
Hook definition for altering payment parameters before talking to a payment processor back end.
Definition will look like this:
function hook_civicrm_alterPaymentProcessorParams( $paymentObj, &$rawParams, &$cookedParams );
in CRM_Utils_Hook at line 1190
static mixed
alterMailParams(array $params, string $context = NULL)
This hook is called when an email is about to be sent by CiviCRM.
in CRM_Utils_Hook at line 1215
static mixed
alterCalculatedMembershipStatus(array $membershipStatus, array $arguments, array $membership)
This hook is called when membership status is being calculated.
in CRM_Utils_Hook at line 1230
static mixed
alterMailContent(array $content)
This hook is called after getting the content of the mail and before tokenizing it.
in CRM_Utils_Hook at line 1247
static array
caseSummary(int $caseID)
This hook is called when rendering the Manage Case screen.
in CRM_Utils_Hook at line 1261
static mixed
caseTypes(array $caseTypes)
This hook is called when locating CiviCase types.
in CRM_Utils_Hook at line 1275
static mixed
config(CRM_Core_Config|array $config)
This hook is called soon after the CRM_Core_Config object has ben initialized.
You can use this hook to modify the config object and hence behavior of CiviCRM dynamically.
in CRM_Utils_Hook at line 1294
static mixed
optionValues(array $options, string $groupName)
deprecated
deprecated
This hooks allows to change option values.
in CRM_Utils_Hook at line 1309
static mixed
navigationMenu(array $params)
This hook allows modification of the navigation menu.
in CRM_Utils_Hook at line 1332
static mixed
merge(string $type, array $data, int $mainId = NULL, int $otherId = NULL, array $tables = NULL)
This hook allows modification of the data used to perform merging of duplicates.
in CRM_Utils_Hook at line 1350
static mixed
alterLocationMergeData(array $blocksDAO, int $mainId, int $otherId, array $migrationInfo)
This hook allows modification of the data calculated for merging locations.
in CRM_Utils_Hook at line 1362
static mixed
notePrivacy(array $noteValues)
This hook provides a way to override the default privacy behavior for notes.
in CRM_Utils_Hook at line 1387
static mixed
export(string $exportTempTable, array $headerRows, array $sqlColumns, int $exportMode, string $componentTable, array $ids)
This hook is called before record is exported as CSV.
in CRM_Utils_Hook at line 1407
static mixed
dupeQuery(string $obj, string $type, array $query)
This hook allows modification of the queries constructed from dupe rules.
in CRM_Utils_Hook at line 1432
static mixed
findDuplicates(array $dedupeParams, array $dedupeResults, array $contextParams)
Check for duplicate contacts
in CRM_Utils_Hook at line 1451
static mixed
emailProcessor(string $type, array $params, object $mail, array $result, string $action = NULL)
This hook is called AFTER EACH email has been processed by the script bin/EmailProcessor.php
in CRM_Utils_Hook at line 1477
static mixed
import(string $object, string $usage, string $objectRef, array $params)
This hook is called after a row has been processed and the record (and associated records imported
in CRM_Utils_Hook at line 1497
static mixed
alterAPIPermissions(string $entity, string $action, array $params, array $permissions)
This hook is called when API permissions are checked (cf. civicrm_api3_api_check_permission() in api/v3/utils.php and _civicrm_api3_permissions() in CRM/Core/DAO/permissions.php).
in CRM_Utils_Hook at line 1509
static mixed
postSave(CRM_Core_DAO $dao)
in CRM_Utils_Hook at line 1527
static mixed
summaryActions(array $actions, int $contactID = NULL)
This hook allows user to customize context menu Actions on contact summary page.
in CRM_Utils_Hook at line 1555
static mixed
searchColumns(string $objectName, array $headers, array $rows, array $selector)
This hook is called from CRM_Core_Selector_Controller through which all searches in civicrm go.
This enables us hook implementors to modify both the headers and the rows
The BIGGEST drawback with this hook is that you may need to modify the result template to include your fields. The result files are CRM/{Contact,Contribute,Member,Event...}/Form/Selector.tpl
However, if you use the same number of columns, you can overwrite the existing columns with the values that you want displayed. This is a hackish, but avoids template modification.
in CRM_Utils_Hook at line 1572
static null
buildUFGroupsForModule(string $moduleName, array $ufGroups)
This hook is called when uf groups are being built for a module.
in CRM_Utils_Hook at line 1597
static null
emailProcessorContact(string $email, int $contactID, array $result)
This hook is called when we are determining the contactID for a specific email address
in CRM_Utils_Hook at line 1637
static mixed
alterMailingLabelParams(array $args)
Hook definition for altering the generation of Mailing Labels.
in CRM_Utils_Hook at line 1659
static mixed
alterContent($content, $context, $tplName, $object)
This hooks allows alteration of generated page content.
in CRM_Utils_Hook at line 1681
static mixed
alterTemplateFile($formName, $form, $context, $tplName)
This hooks allows alteration of the tpl file used to generate content. It differs from the altercontent hook as the content has already been rendered through the tpl at that point
in CRM_Utils_Hook at line 1706
static mixed
triggerInfo($info, string $tableName = NULL)
This hook collects the trigger definition from all components.
in CRM_Utils_Hook at line 1721
static mixed
alterLogTables(array $logTableSpec)
This hook allows changes to the spec of which tables to log.
in CRM_Utils_Hook at line 1734
static
install()
This hook is called when a module-extension is installed.
Each module will receive hook_civicrm_install during its own installation (but not during the installation of unrelated modules).
in CRM_Utils_Hook at line 1747
static
uninstall()
This hook is called when a module-extension is uninstalled.
Each module will receive hook_civicrm_uninstall during its own uninstallation (but not during the uninstallation of unrelated modules).
in CRM_Utils_Hook at line 1760
static
enable()
This hook is called when a module-extension is re-enabled.
Each module will receive hook_civicrm_enable during its own re-enablement (but not during the re-enablement of unrelated modules).
in CRM_Utils_Hook at line 1773
static
disable()
This hook is called when a module-extension is disabled.
Each module will receive hook_civicrm_disable during its own disablement (but not during the disablement of unrelated modules).
in CRM_Utils_Hook at line 1795
static null
alterRedirect(UriInterface $url, array $context)
Alter redirect.
This hook is called when the browser is being re-directed and allows the url to be altered.
in CRM_Utils_Hook at line 1810
static mixed
alterReportVar($varType, $var, $object)
in CRM_Utils_Hook at line 1831
static bool|null
upgrade(string $op, CRM_Queue_Queue $queue = NULL)
This hook is called to drive database upgrades for extension-modules.
in CRM_Utils_Hook at line 1849
static mixed
postEmailSend(array $params)
This hook is called when an email has been successfully sent by CiviCRM, but not on an error.
in CRM_Utils_Hook at line 1865
static mixed
postMailing(int $mailingId)
This hook is called when a CiviMail mailing has completed
in CRM_Utils_Hook at line 1881
static mixed
alterSettingsFolders(array $settingsFolders)
This hook is called when Settings specifications are loaded.
in CRM_Utils_Hook at line 1900
static mixed
alterSettingsMetaData(array $settingsMetaData, int $domainID, mixed $profile)
This hook is called when Settings have been loaded from the xml It is an opportunity for hooks to alter the data
in CRM_Utils_Hook at line 1918
static null
apiWrappers(API_Wrapper[] $wrappers, mixed $apiRequest)
This hook is called before running an api call.
in CRM_Utils_Hook at line 1933
static null
cron(CRM_Core_JobManager $jobManager)
This hook is called before running pending cron jobs.
in CRM_Utils_Hook at line 1951
static null
permission(array $permissions)
This hook is called when loading CMS permissions; use this hook to modify the array of system permissions for CiviCRM.
in CRM_Utils_Hook at line 1972
static null
permission_check(string $permission, bool $granted, int $contactId)
This hook is called when checking permissions; use this hook to dynamically escalate user permissions in certain use cases (cf. CRM-19256).
in CRM_Utils_Hook at line 1984
static
unhandledException(CRM_Core_Exception $exception, mixed $request = NULL)
in CRM_Utils_Hook at line 2006
static null
entityTypes(array[] $entityTypes)
This hook is called for declaring managed entities via API.
Note: This is a pre-boot hook. It will dispatch via the extension/module subsystem but not the Symfony EventDispatcher.
in CRM_Utils_Hook at line 2017
static
eventDefs(CiviEventInspector $inspector)
Build a description of available hooks.
in CRM_Utils_Hook at line 2030
static mixed
buildProfile(string $profileName)
This hook is called while preparing a profile form.
in CRM_Utils_Hook at line 2041
static mixed
validateProfile(string $profileName)
This hook is called while validating a profile form submission.
in CRM_Utils_Hook at line 2052
static mixed
processProfile(string $profileName)
This hook is called processing a valid profile form submission.
in CRM_Utils_Hook at line 2063
static mixed
viewProfile(string $profileName)
This hook is called while preparing a read-only profile screen
in CRM_Utils_Hook at line 2074
static mixed
searchProfile(string $profileName)
This hook is called while preparing a list of contacts (based on a profile)
in CRM_Utils_Hook at line 2094
static null
alterBadge(string $labelName, object $label, array $format, array $participant)
This hook is invoked when building a CiviCRM name badge.
in CRM_Utils_Hook at line 2111
static mixed
alterBarcode(array $data, string $type = 'barcode', string $context = 'name_badge')
This hook is called before encoding data in barcode.
in CRM_Utils_Hook at line 2129
static mixed
alterMailer(object $mailer, string $driver, array $params)
Modify or replace the Mailer object used for outgoing mail.
in CRM_Utils_Hook at line 2149
static mixed
alterMail(object $mailer, string $driver, array $params)
deprecated
deprecated
Deprecated: Misnamed version of alterMailer(). Remove post-4.7.x.
Modify or replace the Mailer object used for outgoing mail.
in CRM_Utils_Hook at line 2169
static mixed
queryObjects(array $queryObjects, string $type = 'Contact')
This hook is called while building the core search query, so hook implementers can provide their own query objects which alters/extends core search.
in CRM_Utils_Hook at line 2184
static mixed
dashboard_defaults(array $availableDashlets, array $defaultDashlets)
This hook is called while viewing contact dashboard.
in CRM_Utils_Hook at line 2200
static mixed
pre_case_merge(int $mainContactId, int $mainCaseId = NULL, int $otherContactId = NULL, int $otherCaseId = NULL, bool $changeClient = FALSE)
This hook is called before a case merge (or a case reassign)
in CRM_Utils_Hook at line 2216
static mixed
post_case_merge(int $mainContactId, int $mainCaseId = NULL, int $otherContactId = NULL, int $otherCaseId = NULL, bool $changeClient = FALSE)
This hook is called after a case merge (or a case reassign)
in CRM_Utils_Hook at line 2234
static mixed
alterDisplayName(string $displayName, int $contactId, object $dao)
Issue CRM-14276 Add a hook for altering the display name
hook_civicrm_contact_get_displayname(&$display_name, $objContact)
in CRM_Utils_Hook at line 2247
static
alterResourceSettings(array $data)
Modify the CRM_Core_Resources settings data.
in CRM_Utils_Hook at line 2288
static null
angularModules(array $angularModules)
EXPERIMENTAL: This hook allows one to register additional Angular modules
in CRM_Utils_Hook at line 2311
static
alterAngular(Manager $angular)
Alter the definition of some Angular HTML partials.
in CRM_Utils_Hook at line 2329
static null
getAssetUrl(string $asset, array $params)
This hook is called when building a link to a semi-static asset.
in CRM_Utils_Hook at line 2353
static null
buildAsset(string $asset, array $params, string $mimeType, string $content)
This hook is called whenever the system builds a new copy of semi-static asset.
in CRM_Utils_Hook at line 2366
static
caseChange(Analyzer $analyzer)
This hook fires whenever a record in a case changes.
in CRM_Utils_Hook at line 2389
static mixed
crudLink(array $spec, CRM_Core_DAO $bao, array $link)
Generate a default CRUD URL for an entity.
in CRM_Utils_Hook at line 2420
static
container(ContainerBuilder $container)
Modify the CiviCRM container - add new services, parameters, extensions, etc.
in CRM_Utils_Hook at line 2428
static mixed
fileSearches(array $fileSearches)
in CRM_Utils_Hook at line 2442
static mixed
check(array $messages)
Check system status.
in CRM_Utils_Hook at line 2454
static mixed
batchQuery(string $query)
This hook is called when a query string of the CSV Batch export is generated.
in CRM_Utils_Hook at line 2475
static mixed
alterDeferredRevenueItems(array $deferredRevenues, array $contributionDetails, bool $update, string $context)
This hook is called to alter Deferred revenue item values just before they are inserted in civicrm_financial_trxn table
in CRM_Utils_Hook at line 2489
static mixed
batchItems(array $results, array $items)
This hook is called when the entries of the CSV Batch export are mapped.
in CRM_Utils_Hook at line 2504
static
coreResourceList(array $list, string $region)
This hook is called when core resources are being loaded
in CRM_Utils_Hook at line 2519
static
entityRefFilters(array $filters, array $links = NULL)
Allows the list of filters on the EntityRef widget to be altered.
in CRM_Utils_Hook at line 2533
static mixed
idsException(array $skip)
This hook is called for bypass a few civicrm urls from IDS check.
in CRM_Utils_Hook at line 2549
static mixed
geocoderFormat(string $geoProvider, array $values, SimpleXMLElement $xml)
This hook is called when a geocoder's format method is called.
in CRM_Utils_Hook at line 2563
static mixed
inboundSMS(CRM_SMS_Message $message)
This hook is called before an inbound SMS is processed.
in CRM_Utils_Hook at line 2574
static mixed
alterEntityRefParams(array $params, string $formName)
This hook is called to modify api params of EntityRef form field
in CRM_Utils_Hook at line 2589
static
preJob(CRM_Core_DAO_Job $job, array $params)
This hook is called before a scheduled job is executed
in CRM_Utils_Hook at line 2606
static
postJob(CRM_Core_DAO_Job $job, array $params, array $result)
This hook is called after a scheduled job is executed
in CRM_Utils_Hook at line 2626
static mixed
alterMailingRecipients(CRM_Mailing_DAO_Mailing $mailingObject, array $criteria, string $context)
This hook is called before and after constructing mail recipients.
Allows user to alter filter and/or search query to fetch mail recipients
in CRM_Utils_Hook at line 2639
static mixed
postIPNProcess(array $IPNData)
ALlow Extensions to custom process IPN hook data such as sending Google Analyitcs information based on the IPN