{"action":"opened","number":134,"pull_request":{"url":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134","id":31812823,"html_url":"https://github.com/opensolutions/ViMbAdmin/pull/134","diff_url":"https://github.com/opensolutions/ViMbAdmin/pull/134.diff","patch_url":"https://github.com/opensolutions/ViMbAdmin/pull/134.patch","issue_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/134","number":134,"state":"open","locked":false,"title":"Hook rewrite return value","user":{"login":"idefix6","id":5580248,"avatar_url":"https://avatars.githubusercontent.com/u/5580248?v=3","gravatar_id":"","url":"https://api.github.com/users/idefix6","html_url":"https://github.com/idefix6","followers_url":"https://api.github.com/users/idefix6/followers","following_url":"https://api.github.com/users/idefix6/following{/other_user}","gists_url":"https://api.github.com/users/idefix6/gists{/gist_id}","starred_url":"https://api.github.com/users/idefix6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idefix6/subscriptions","organizations_url":"https://api.github.com/users/idefix6/orgs","repos_url":"https://api.github.com/users/idefix6/repos","events_url":"https://api.github.com/users/idefix6/events{/privacy}","received_events_url":"https://api.github.com/users/idefix6/received_events","type":"User","site_admin":false},"body":"I required the functionality to implement checks in plugins.\r\nThese checks must be able to forbid core to write values into the database.\r\nAs this logic is part of the plugin the hook system must be able to handle return values.\r\n\r\nWith these modifications the called hooks can return a false value and therefor are able to inform core to not execute the triggered action, but display an error message.\r\n\r\nWould be nice if this could be merged into the repository.\r\n","created_at":"2015-03-24T10:23:04Z","updated_at":"2015-03-24T10:23:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134/commits","review_comments_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134/comments","review_comment_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/134/comments","statuses_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/statuses/eb27f5f8afdb98d043f015f99978e77dcf8cbeb0","head":{"label":"idefix6:hook_rewrite_return_value","ref":"hook_rewrite_return_value","sha":"eb27f5f8afdb98d043f015f99978e77dcf8cbeb0","user":{"login":"idefix6","id":5580248,"avatar_url":"https://avatars.githubusercontent.com/u/5580248?v=3","gravatar_id":"","url":"https://api.github.com/users/idefix6","html_url":"https://github.com/idefix6","followers_url":"https://api.github.com/users/idefix6/followers","following_url":"https://api.github.com/users/idefix6/following{/other_user}","gists_url":"https://api.github.com/users/idefix6/gists{/gist_id}","starred_url":"https://api.github.com/users/idefix6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idefix6/subscriptions","organizations_url":"https://api.github.com/users/idefix6/orgs","repos_url":"https://api.github.com/users/idefix6/repos","events_url":"https://api.github.com/users/idefix6/events{/privacy}","received_events_url":"https://api.github.com/users/idefix6/received_events","type":"User","site_admin":false},"repo":{"id":24427117,"name":"ViMbAdmin","full_name":"idefix6/ViMbAdmin","owner":{"login":"idefix6","id":5580248,"avatar_url":"https://avatars.githubusercontent.com/u/5580248?v=3","gravatar_id":"","url":"https://api.github.com/users/idefix6","html_url":"https://github.com/idefix6","followers_url":"https://api.github.com/users/idefix6/followers","following_url":"https://api.github.com/users/idefix6/following{/other_user}","gists_url":"https://api.github.com/users/idefix6/gists{/gist_id}","starred_url":"https://api.github.com/users/idefix6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idefix6/subscriptions","organizations_url":"https://api.github.com/users/idefix6/orgs","repos_url":"https://api.github.com/users/idefix6/repos","events_url":"https://api.github.com/users/idefix6/events{/privacy}","received_events_url":"https://api.github.com/users/idefix6/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/idefix6/ViMbAdmin","description":"Virtual Mailbox Administration","fork":true,"url":"https://api.github.com/repos/idefix6/ViMbAdmin","forks_url":"https://api.github.com/repos/idefix6/ViMbAdmin/forks","keys_url":"https://api.github.com/repos/idefix6/ViMbAdmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idefix6/ViMbAdmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idefix6/ViMbAdmin/teams","hooks_url":"https://api.github.com/repos/idefix6/ViMbAdmin/hooks","issue_events_url":"https://api.github.com/repos/idefix6/ViMbAdmin/issues/events{/number}","events_url":"https://api.github.com/repos/idefix6/ViMbAdmin/events","assignees_url":"https://api.github.com/repos/idefix6/ViMbAdmin/assignees{/user}","branches_url":"https://api.github.com/repos/idefix6/ViMbAdmin/branches{/branch}","tags_url":"https://api.github.com/repos/idefix6/ViMbAdmin/tags","blobs_url":"https://api.github.com/repos/idefix6/ViMbAdmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idefix6/ViMbAdmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idefix6/ViMbAdmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/idefix6/ViMbAdmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idefix6/ViMbAdmin/statuses/{sha}","languages_url":"https://api.github.com/repos/idefix6/ViMbAdmin/languages","stargazers_url":"https://api.github.com/repos/idefix6/ViMbAdmin/stargazers","contributors_url":"https://api.github.com/repos/idefix6/ViMbAdmin/contributors","subscribers_url":"https://api.github.com/repos/idefix6/ViMbAdmin/subscribers","subscription_url":"https://api.github.com/repos/idefix6/ViMbAdmin/subscription","commits_url":"https://api.github.com/repos/idefix6/ViMbAdmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/idefix6/ViMbAdmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/idefix6/ViMbAdmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/idefix6/ViMbAdmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/idefix6/ViMbAdmin/contents/{+path}","compare_url":"https://api.github.com/repos/idefix6/ViMbAdmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idefix6/ViMbAdmin/merges","archive_url":"https://api.github.com/repos/idefix6/ViMbAdmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idefix6/ViMbAdmin/downloads","issues_url":"https://api.github.com/repos/idefix6/ViMbAdmin/issues{/number}","pulls_url":"https://api.github.com/repos/idefix6/ViMbAdmin/pulls{/number}","milestones_url":"https://api.github.com/repos/idefix6/ViMbAdmin/milestones{/number}","notifications_url":"https://api.github.com/repos/idefix6/ViMbAdmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idefix6/ViMbAdmin/labels{/name}","releases_url":"https://api.github.com/repos/idefix6/ViMbAdmin/releases{/id}","created_at":"2014-09-24T18:22:52Z","updated_at":"2015-03-24T10:15:11Z","pushed_at":"2015-03-24T10:16:30Z","git_url":"git://github.com/idefix6/ViMbAdmin.git","ssh_url":"git@github.com:idefix6/ViMbAdmin.git","clone_url":"https://github.com/idefix6/ViMbAdmin.git","svn_url":"https://github.com/idefix6/ViMbAdmin","homepage":"http://www.vimbadmin.net/","size":14270,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opensolutions:master","ref":"master","sha":"549882ea71d1e44914dbe0f661fa8bb73bcd0ff4","user":{"login":"opensolutions","id":998344,"avatar_url":"https://avatars.githubusercontent.com/u/998344?v=3","gravatar_id":"","url":"https://api.github.com/users/opensolutions","html_url":"https://github.com/opensolutions","followers_url":"https://api.github.com/users/opensolutions/followers","following_url":"https://api.github.com/users/opensolutions/following{/other_user}","gists_url":"https://api.github.com/users/opensolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/opensolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensolutions/subscriptions","organizations_url":"https://api.github.com/users/opensolutions/orgs","repos_url":"https://api.github.com/users/opensolutions/repos","events_url":"https://api.github.com/users/opensolutions/events{/privacy}","received_events_url":"https://api.github.com/users/opensolutions/received_events","type":"Organization","site_admin":false},"repo":{"id":2253847,"name":"ViMbAdmin","full_name":"opensolutions/ViMbAdmin","owner":{"login":"opensolutions","id":998344,"avatar_url":"https://avatars.githubusercontent.com/u/998344?v=3","gravatar_id":"","url":"https://api.github.com/users/opensolutions","html_url":"https://github.com/opensolutions","followers_url":"https://api.github.com/users/opensolutions/followers","following_url":"https://api.github.com/users/opensolutions/following{/other_user}","gists_url":"https://api.github.com/users/opensolutions/gists{/gist_id}","starred_url":"https://api.github.com/users/opensolutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensolutions/subscriptions","organizations_url":"https://api.github.com/users/opensolutions/orgs","repos_url":"https://api.github.com/users/opensolutions/repos","events_url":"https://api.github.com/users/opensolutions/events{/privacy}","received_events_url":"https://api.github.com/users/opensolutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opensolutions/ViMbAdmin","description":"Virtual Mailbox Administration","fork":false,"url":"https://api.github.com/repos/opensolutions/ViMbAdmin","forks_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/forks","keys_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/teams","hooks_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/hooks","issue_events_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/events{/number}","events_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/events","assignees_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/assignees{/user}","branches_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/branches{/branch}","tags_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/tags","blobs_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/statuses/{sha}","languages_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/languages","stargazers_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/stargazers","contributors_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/contributors","subscribers_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/subscribers","subscription_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/subscription","commits_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/contents/{+path}","compare_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/merges","archive_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/downloads","issues_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues{/number}","pulls_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls{/number}","milestones_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/milestones{/number}","notifications_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/labels{/name}","releases_url":"https://api.github.com/repos/opensolutions/ViMbAdmin/releases{/id}","created_at":"2011-08-23T08:04:26Z","updated_at":"2015-03-21T13:12:27Z","pushed_at":"2015-03-14T14:21:09Z","git_url":"git://github.com/opensolutions/ViMbAdmin.git","ssh_url":"git@github.com:opensolutions/ViMbAdmin.git","clone_url":"https://github.com/opensolutions/ViMbAdmin.git","svn_url":"https://github.com/opensolutions/ViMbAdmin","homepage":"http://www.vimbadmin.net/","size":15622,"stargazers_count":200,"watchers_count":200,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":24,"forks":41,"open_issues":24,"watchers":200,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134"},"html":{"href":"https://github.com/opensolutions/ViMbAdmin/pull/134"},"issue":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/134"},"comments":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/opensolutions/ViMbAdmin/statuses/eb27f5f8afdb98d043f015f99978e77dcf8cbeb0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":37,"deletions":25,"changed_files":3}}