diff --git a/docs/hooks/hook_civirules_alter_trigger_data.md b/docs/hooks/hook_civirules_alter_trigger_data.md deleted file mode 100644 index 277b8e69d2397cf339b22a073eb7dd7aad1cef86..0000000000000000000000000000000000000000 --- a/docs/hooks/hook_civirules_alter_trigger_data.md +++ /dev/null @@ -1,31 +0,0 @@ -# hook_civirules_alter_trigger_data - -## Description - -This hook is called for altering the trigger data object just before a -trigger is triggered. - -## Definition - - hook_civirules_alter_trigger_data(CRM_Civirules_TriggerData_TriggerData &$triggerData ) - -## Returns - -- null - -## Example - - - - /** - * Implements hook_civirules_alter_trigger_data - * - * Adds custom data to the trigger data object - */ - function civirules_civirules_alter_trigger_data(CRM_Civirules_TriggerData_TriggerData &$triggerData) { - - //also add the custom data which is passed to the pre hook (and not the post) - - CRM_Civirules_Utils_CustomDataFromPre::addCustomDataToTriggerData($triggerData); - - } \ No newline at end of file diff --git a/docs/hooks/hook_civirules_logger.md b/docs/hooks/hook_civirules_logger.md deleted file mode 100644 index df74af512f9f7de571399c5a73d0ff8f14fb23bb..0000000000000000000000000000000000000000 --- a/docs/hooks/hook_civirules_logger.md +++ /dev/null @@ -1,25 +0,0 @@ -# hook_civirules_logger - -## Description - -This hook is called for return an object to do logging in CiviRules. The -object should be instance of \Psr\Log\LoggerInterface or null if you -want to disable the logging - -## Definition - - hook_civirules_logger(\Psr\Log\LoggerInterface &$logger=null) - -## Returns - -- null - -## Example - -The example below returns a database logger for civirules. - - function civiruleslogger_civirules_logger(\Psr\Log\LoggerInterface &$logger=null) { - if (empty($logger)) { - $logger = new CRM_Civiruleslogger_DatabaseLogger(); - } - } \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index edbc65863663412a7c1128fe83c54a10326d057a..fe283797c1297375b17967651e927a51ed851400 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -183,9 +183,6 @@ pages: - hook_civicrm_tokens: hooks/hook_civicrm_tokens.md - hook_civicrm_tokenValues: hooks/hook_civicrm_tokenValues.md - hook_civicrm_unhandledException: hooks/hook_civicrm_unhandledException.md - - CiviRules hooks: - - hook_civirules_alter_trigger_data: hooks/hook_civirules_alter_trigger_data.md - - hook_civirules_logger: hooks/hook_civirules_logger.md - Documentation: - Writing Documentation: documentation/index.md - Documenting Extensions: documentation/extensions.md