{"action":"created","comment":{"url":"https://api.github.com/repos/Elgg/Elgg/pulls/comments/92588167","pull_request_review_id":13105812,"id":92588167,"diff_hunk":"@@ -454,6 +454,20 @@ Note that not all hooks apply to instant notifications.\n \t * ``headers`` - an array of headers\n \t * ``params`` - other parameters inherited from the notification object or passed directly to ``elgg_send_email()``\n \n+**email:message, system**\n+\tTriggered by ``elgg_send_email()``.\n+\tApplies to **subscriptions** and **instant** notifications with ``email`` method.\n+\tThis hook is triggered just before the email is being send. This hook allows last minute changes to the contents or structure of the email message - the handler must return a ``\\Zend\\Mail\\Message``.","path":"docs/guides/hooks-list.rst","position":null,"original_position":7,"commit_id":"c56425159e61ff582da8a9ce310924e3d82397bf","original_commit_id":"f1a8790e01953859e9cebfe37c71381fa2e7509e","user":{"login":"jeabakker","id":881958,"avatar_url":"https://avatars.githubusercontent.com/u/881958?v=3","gravatar_id":"","url":"https://api.github.com/users/jeabakker","html_url":"https://github.com/jeabakker","followers_url":"https://api.github.com/users/jeabakker/followers","following_url":"https://api.github.com/users/jeabakker/following{/other_user}","gists_url":"https://api.github.com/users/jeabakker/gists{/gist_id}","starred_url":"https://api.github.com/users/jeabakker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeabakker/subscriptions","organizations_url":"https://api.github.com/users/jeabakker/orgs","repos_url":"https://api.github.com/users/jeabakker/repos","events_url":"https://api.github.com/users/jeabakker/events{/privacy}","received_events_url":"https://api.github.com/users/jeabakker/received_events","type":"User","site_admin":false},"body":"changed","created_at":"2016-12-15T11:05:25Z","updated_at":"2016-12-15T11:05:25Z","html_url":"https://github.com/Elgg/Elgg/pull/10651#discussion_r92588167","pull_request_url":"https://api.github.com/repos/Elgg/Elgg/pulls/10651","_links":{"self":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/comments/92588167"},"html":{"href":"https://github.com/Elgg/Elgg/pull/10651#discussion_r92588167"},"pull_request":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/10651"}}},"pull_request":{"url":"https://api.github.com/repos/Elgg/Elgg/pulls/10651","id":97948386,"html_url":"https://github.com/Elgg/Elgg/pull/10651","diff_url":"https://github.com/Elgg/Elgg/pull/10651.diff","patch_url":"https://github.com/Elgg/Elgg/pull/10651.patch","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/10651","number":10651,"state":"open","locked":false,"title":"feat(email): adds a plugin hook to alter the contents of an email","user":{"login":"jeabakker","id":881958,"avatar_url":"https://avatars.githubusercontent.com/u/881958?v=3","gravatar_id":"","url":"https://api.github.com/users/jeabakker","html_url":"https://github.com/jeabakker","followers_url":"https://api.github.com/users/jeabakker/followers","following_url":"https://api.github.com/users/jeabakker/following{/other_user}","gists_url":"https://api.github.com/users/jeabakker/gists{/gist_id}","starred_url":"https://api.github.com/users/jeabakker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeabakker/subscriptions","organizations_url":"https://api.github.com/users/jeabakker/orgs","repos_url":"https://api.github.com/users/jeabakker/repos","events_url":"https://api.github.com/users/jeabakker/events{/privacy}","received_events_url":"https://api.github.com/users/jeabakker/received_events","type":"User","site_admin":false},"body":"This allows plugin developers to change the contents of the email\r\nmessage just before its being send.","created_at":"2016-12-14T13:06:00Z","updated_at":"2016-12-15T11:05:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06c294a7f9d81e47ba5ef3044c04c62f71db0290","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Elgg/Elgg/pulls/10651/commits","review_comments_url":"https://api.github.com/repos/Elgg/Elgg/pulls/10651/comments","review_comment_url":"https://api.github.com/repos/Elgg/Elgg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/10651/comments","statuses_url":"https://api.github.com/repos/Elgg/Elgg/statuses/c56425159e61ff582da8a9ce310924e3d82397bf","head":{"label":"jeabakker:email-hook","ref":"email-hook","sha":"c56425159e61ff582da8a9ce310924e3d82397bf","user":{"login":"jeabakker","id":881958,"avatar_url":"https://avatars.githubusercontent.com/u/881958?v=3","gravatar_id":"","url":"https://api.github.com/users/jeabakker","html_url":"https://github.com/jeabakker","followers_url":"https://api.github.com/users/jeabakker/followers","following_url":"https://api.github.com/users/jeabakker/following{/other_user}","gists_url":"https://api.github.com/users/jeabakker/gists{/gist_id}","starred_url":"https://api.github.com/users/jeabakker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeabakker/subscriptions","organizations_url":"https://api.github.com/users/jeabakker/orgs","repos_url":"https://api.github.com/users/jeabakker/repos","events_url":"https://api.github.com/users/jeabakker/events{/privacy}","received_events_url":"https://api.github.com/users/jeabakker/received_events","type":"User","site_admin":false},"repo":{"id":3210349,"name":"Elgg","full_name":"jeabakker/Elgg","owner":{"login":"jeabakker","id":881958,"avatar_url":"https://avatars.githubusercontent.com/u/881958?v=3","gravatar_id":"","url":"https://api.github.com/users/jeabakker","html_url":"https://github.com/jeabakker","followers_url":"https://api.github.com/users/jeabakker/followers","following_url":"https://api.github.com/users/jeabakker/following{/other_user}","gists_url":"https://api.github.com/users/jeabakker/gists{/gist_id}","starred_url":"https://api.github.com/users/jeabakker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeabakker/subscriptions","organizations_url":"https://api.github.com/users/jeabakker/orgs","repos_url":"https://api.github.com/users/jeabakker/repos","events_url":"https://api.github.com/users/jeabakker/events{/privacy}","received_events_url":"https://api.github.com/users/jeabakker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeabakker/Elgg","description":"A social networking engine","fork":true,"url":"https://api.github.com/repos/jeabakker/Elgg","forks_url":"https://api.github.com/repos/jeabakker/Elgg/forks","keys_url":"https://api.github.com/repos/jeabakker/Elgg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeabakker/Elgg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeabakker/Elgg/teams","hooks_url":"https://api.github.com/repos/jeabakker/Elgg/hooks","issue_events_url":"https://api.github.com/repos/jeabakker/Elgg/issues/events{/number}","events_url":"https://api.github.com/repos/jeabakker/Elgg/events","assignees_url":"https://api.github.com/repos/jeabakker/Elgg/assignees{/user}","branches_url":"https://api.github.com/repos/jeabakker/Elgg/branches{/branch}","tags_url":"https://api.github.com/repos/jeabakker/Elgg/tags","blobs_url":"https://api.github.com/repos/jeabakker/Elgg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeabakker/Elgg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeabakker/Elgg/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeabakker/Elgg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeabakker/Elgg/statuses/{sha}","languages_url":"https://api.github.com/repos/jeabakker/Elgg/languages","stargazers_url":"https://api.github.com/repos/jeabakker/Elgg/stargazers","contributors_url":"https://api.github.com/repos/jeabakker/Elgg/contributors","subscribers_url":"https://api.github.com/repos/jeabakker/Elgg/subscribers","subscription_url":"https://api.github.com/repos/jeabakker/Elgg/subscription","commits_url":"https://api.github.com/repos/jeabakker/Elgg/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeabakker/Elgg/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeabakker/Elgg/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeabakker/Elgg/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeabakker/Elgg/contents/{+path}","compare_url":"https://api.github.com/repos/jeabakker/Elgg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeabakker/Elgg/merges","archive_url":"https://api.github.com/repos/jeabakker/Elgg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeabakker/Elgg/downloads","issues_url":"https://api.github.com/repos/jeabakker/Elgg/issues{/number}","pulls_url":"https://api.github.com/repos/jeabakker/Elgg/pulls{/number}","milestones_url":"https://api.github.com/repos/jeabakker/Elgg/milestones{/number}","notifications_url":"https://api.github.com/repos/jeabakker/Elgg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeabakker/Elgg/labels{/name}","releases_url":"https://api.github.com/repos/jeabakker/Elgg/releases{/id}","deployments_url":"https://api.github.com/repos/jeabakker/Elgg/deployments","created_at":"2012-01-18T16:53:11Z","updated_at":"2016-09-23T16:17:25Z","pushed_at":"2016-12-15T11:05:18Z","git_url":"git://github.com/jeabakker/Elgg.git","ssh_url":"git@github.com:jeabakker/Elgg.git","clone_url":"https://github.com/jeabakker/Elgg.git","svn_url":"https://github.com/jeabakker/Elgg","homepage":"http://elgg.org","size":49249,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Elgg:master","ref":"master","sha":"4b2bc83df3ca695304785f367cad0c5df73b83ce","user":{"login":"Elgg","id":79167,"avatar_url":"https://avatars.githubusercontent.com/u/79167?v=3","gravatar_id":"","url":"https://api.github.com/users/Elgg","html_url":"https://github.com/Elgg","followers_url":"https://api.github.com/users/Elgg/followers","following_url":"https://api.github.com/users/Elgg/following{/other_user}","gists_url":"https://api.github.com/users/Elgg/gists{/gist_id}","starred_url":"https://api.github.com/users/Elgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elgg/subscriptions","organizations_url":"https://api.github.com/users/Elgg/orgs","repos_url":"https://api.github.com/users/Elgg/repos","events_url":"https://api.github.com/users/Elgg/events{/privacy}","received_events_url":"https://api.github.com/users/Elgg/received_events","type":"Organization","site_admin":false},"repo":{"id":299271,"name":"Elgg","full_name":"Elgg/Elgg","owner":{"login":"Elgg","id":79167,"avatar_url":"https://avatars.githubusercontent.com/u/79167?v=3","gravatar_id":"","url":"https://api.github.com/users/Elgg","html_url":"https://github.com/Elgg","followers_url":"https://api.github.com/users/Elgg/followers","following_url":"https://api.github.com/users/Elgg/following{/other_user}","gists_url":"https://api.github.com/users/Elgg/gists{/gist_id}","starred_url":"https://api.github.com/users/Elgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elgg/subscriptions","organizations_url":"https://api.github.com/users/Elgg/orgs","repos_url":"https://api.github.com/users/Elgg/repos","events_url":"https://api.github.com/users/Elgg/events{/privacy}","received_events_url":"https://api.github.com/users/Elgg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Elgg/Elgg","description":"A social networking engine in PHP/MySQL","fork":false,"url":"https://api.github.com/repos/Elgg/Elgg","forks_url":"https://api.github.com/repos/Elgg/Elgg/forks","keys_url":"https://api.github.com/repos/Elgg/Elgg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Elgg/Elgg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Elgg/Elgg/teams","hooks_url":"https://api.github.com/repos/Elgg/Elgg/hooks","issue_events_url":"https://api.github.com/repos/Elgg/Elgg/issues/events{/number}","events_url":"https://api.github.com/repos/Elgg/Elgg/events","assignees_url":"https://api.github.com/repos/Elgg/Elgg/assignees{/user}","branches_url":"https://api.github.com/repos/Elgg/Elgg/branches{/branch}","tags_url":"https://api.github.com/repos/Elgg/Elgg/tags","blobs_url":"https://api.github.com/repos/Elgg/Elgg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Elgg/Elgg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Elgg/Elgg/git/refs{/sha}","trees_url":"https://api.github.com/repos/Elgg/Elgg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Elgg/Elgg/statuses/{sha}","languages_url":"https://api.github.com/repos/Elgg/Elgg/languages","stargazers_url":"https://api.github.com/repos/Elgg/Elgg/stargazers","contributors_url":"https://api.github.com/repos/Elgg/Elgg/contributors","subscribers_url":"https://api.github.com/repos/Elgg/Elgg/subscribers","subscription_url":"https://api.github.com/repos/Elgg/Elgg/subscription","commits_url":"https://api.github.com/repos/Elgg/Elgg/commits{/sha}","git_commits_url":"https://api.github.com/repos/Elgg/Elgg/git/commits{/sha}","comments_url":"https://api.github.com/repos/Elgg/Elgg/comments{/number}","issue_comment_url":"https://api.github.com/repos/Elgg/Elgg/issues/comments{/number}","contents_url":"https://api.github.com/repos/Elgg/Elgg/contents/{+path}","compare_url":"https://api.github.com/repos/Elgg/Elgg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Elgg/Elgg/merges","archive_url":"https://api.github.com/repos/Elgg/Elgg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Elgg/Elgg/downloads","issues_url":"https://api.github.com/repos/Elgg/Elgg/issues{/number}","pulls_url":"https://api.github.com/repos/Elgg/Elgg/pulls{/number}","milestones_url":"https://api.github.com/repos/Elgg/Elgg/milestones{/number}","notifications_url":"https://api.github.com/repos/Elgg/Elgg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Elgg/Elgg/labels{/name}","releases_url":"https://api.github.com/repos/Elgg/Elgg/releases{/id}","deployments_url":"https://api.github.com/repos/Elgg/Elgg/deployments","created_at":"2009-09-06T17:10:11Z","updated_at":"2016-12-14T15:55:51Z","pushed_at":"2016-12-15T11:05:19Z","git_url":"git://github.com/Elgg/Elgg.git","ssh_url":"git@github.com:Elgg/Elgg.git","clone_url":"https://github.com/Elgg/Elgg.git","svn_url":"https://github.com/Elgg/Elgg","homepage":"http://elgg.org","size":57947,"stargazers_count":950,"watchers_count":950,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":541,"mirror_url":null,"open_issues_count":816,"forks":541,"open_issues":816,"watchers":950,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/10651"},"html":{"href":"https://github.com/Elgg/Elgg/pull/10651"},"issue":{"href":"https://api.github.com/repos/Elgg/Elgg/issues/10651"},"comments":{"href":"https://api.github.com/repos/Elgg/Elgg/issues/10651/comments"},"review_comments":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/10651/comments"},"review_comment":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Elgg/Elgg/pulls/10651/commits"},"statuses":{"href":"https://api.github.com/repos/Elgg/Elgg/statuses/c56425159e61ff582da8a9ce310924e3d82397bf"}}}}
{"actor":{"display_login":"jeabakker"}}