{"action":"created","comment":{"url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/comments/27030875","id":27030875,"diff_hunk":"@@ -564,3 +561,12 @@ function islandora_usage_stats_menu_alter(&$items) {\n   $items['islandora/object/%islandora_object/datastream/%islandora_datastream/download']['module']\n     = \"islandora_usage_stats\";\n }\n+/**\n+ * Implements hook_islandora_overview_object_alter().\n+ */\n+function islandora_usage_stats_collections_islandora_overview_object_alter(AbstractObject &$object, &$output) {","path":"islandora_usage_stats.module","position":27,"original_position":27,"commit_id":"878d8d15c466202c18c8cd52e0ec1d4a6a9cc710","original_commit_id":"878d8d15c466202c18c8cd52e0ec1d4a6a9cc710","user":{"login":"adam-vessey","id":607975,"avatar_url":"https://avatars.githubusercontent.com/u/607975?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-vessey","html_url":"https://github.com/adam-vessey","followers_url":"https://api.github.com/users/adam-vessey/followers","following_url":"https://api.github.com/users/adam-vessey/following{/other_user}","gists_url":"https://api.github.com/users/adam-vessey/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-vessey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-vessey/subscriptions","organizations_url":"https://api.github.com/users/adam-vessey/orgs","repos_url":"https://api.github.com/users/adam-vessey/repos","events_url":"https://api.github.com/users/adam-vessey/events{/privacy}","received_events_url":"https://api.github.com/users/adam-vessey/received_events","type":"User","site_admin":false},"body":"The `collections` bit in this function name would(/should) cause it to never be matched... `islandora:collectionCModel` is the content model we want to target, yeah? To make a function name, we transform \"invalid\" characters (`:`, `-`, _etc_) to underscores (and PHP function names are not case sensitive)... So to have this alter happen only on objects with the `islandora:collectionCModel` model, the function should likely be named `islandora_usage_stats_islandora_collectioncmodel_islandora_overview_object_alter`.","created_at":"2015-03-24T14:16:00Z","updated_at":"2015-03-24T14:16:00Z","html_url":"https://github.com/discoverygarden/islandora_usage_stats/pull/27#discussion_r27030875","pull_request_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/comments/27030875"},"html":{"href":"https://github.com/discoverygarden/islandora_usage_stats/pull/27#discussion_r27030875"},"pull_request":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27","id":31754207,"html_url":"https://github.com/discoverygarden/islandora_usage_stats/pull/27","diff_url":"https://github.com/discoverygarden/islandora_usage_stats/pull/27.diff","patch_url":"https://github.com/discoverygarden/islandora_usage_stats/pull/27.patch","issue_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/27","number":27,"state":"open","locked":false,"title":"Adding contextual View for collection overviews","user":{"login":"knjackson30974","id":8739292,"avatar_url":"https://avatars.githubusercontent.com/u/8739292?v=3","gravatar_id":"","url":"https://api.github.com/users/knjackson30974","html_url":"https://github.com/knjackson30974","followers_url":"https://api.github.com/users/knjackson30974/followers","following_url":"https://api.github.com/users/knjackson30974/following{/other_user}","gists_url":"https://api.github.com/users/knjackson30974/gists{/gist_id}","starred_url":"https://api.github.com/users/knjackson30974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knjackson30974/subscriptions","organizations_url":"https://api.github.com/users/knjackson30974/orgs","repos_url":"https://api.github.com/users/knjackson30974/repos","events_url":"https://api.github.com/users/knjackson30974/events{/privacy}","received_events_url":"https://api.github.com/users/knjackson30974/received_events","type":"User","site_admin":false},"body":"Adding contextual View for collection overviews","created_at":"2015-03-23T17:22:51Z","updated_at":"2015-03-24T14:16:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd1c2d5e25cb35a3ff80cda4baa9caa1bf932f8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27/commits","review_comments_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27/comments","review_comment_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/27/comments","statuses_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/statuses/878d8d15c466202c18c8cd52e0ec1d4a6a9cc710","head":{"label":"knjackson30974:Kylea/7.x","ref":"Kylea/7.x","sha":"878d8d15c466202c18c8cd52e0ec1d4a6a9cc710","user":{"login":"knjackson30974","id":8739292,"avatar_url":"https://avatars.githubusercontent.com/u/8739292?v=3","gravatar_id":"","url":"https://api.github.com/users/knjackson30974","html_url":"https://github.com/knjackson30974","followers_url":"https://api.github.com/users/knjackson30974/followers","following_url":"https://api.github.com/users/knjackson30974/following{/other_user}","gists_url":"https://api.github.com/users/knjackson30974/gists{/gist_id}","starred_url":"https://api.github.com/users/knjackson30974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knjackson30974/subscriptions","organizations_url":"https://api.github.com/users/knjackson30974/orgs","repos_url":"https://api.github.com/users/knjackson30974/repos","events_url":"https://api.github.com/users/knjackson30974/events{/privacy}","received_events_url":"https://api.github.com/users/knjackson30974/received_events","type":"User","site_admin":false},"repo":{"id":32168084,"name":"islandora_usage_stats","full_name":"knjackson30974/islandora_usage_stats","owner":{"login":"knjackson30974","id":8739292,"avatar_url":"https://avatars.githubusercontent.com/u/8739292?v=3","gravatar_id":"","url":"https://api.github.com/users/knjackson30974","html_url":"https://github.com/knjackson30974","followers_url":"https://api.github.com/users/knjackson30974/followers","following_url":"https://api.github.com/users/knjackson30974/following{/other_user}","gists_url":"https://api.github.com/users/knjackson30974/gists{/gist_id}","starred_url":"https://api.github.com/users/knjackson30974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knjackson30974/subscriptions","organizations_url":"https://api.github.com/users/knjackson30974/orgs","repos_url":"https://api.github.com/users/knjackson30974/repos","events_url":"https://api.github.com/users/knjackson30974/events{/privacy}","received_events_url":"https://api.github.com/users/knjackson30974/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knjackson30974/islandora_usage_stats","description":"Track views of islandora items","fork":true,"url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats","forks_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/forks","keys_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/teams","hooks_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/hooks","issue_events_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/issues/events{/number}","events_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/events","assignees_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/assignees{/user}","branches_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/branches{/branch}","tags_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/tags","blobs_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/statuses/{sha}","languages_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/languages","stargazers_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/stargazers","contributors_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/contributors","subscribers_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/subscribers","subscription_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/subscription","commits_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/contents/{+path}","compare_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/merges","archive_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/downloads","issues_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/issues{/number}","pulls_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/pulls{/number}","milestones_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/milestones{/number}","notifications_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/labels{/name}","releases_url":"https://api.github.com/repos/knjackson30974/islandora_usage_stats/releases{/id}","created_at":"2015-03-13T16:46:15Z","updated_at":"2014-12-04T16:39:22Z","pushed_at":"2015-03-24T12:30:44Z","git_url":"git://github.com/knjackson30974/islandora_usage_stats.git","ssh_url":"git@github.com:knjackson30974/islandora_usage_stats.git","clone_url":"https://github.com/knjackson30974/islandora_usage_stats.git","svn_url":"https://github.com/knjackson30974/islandora_usage_stats","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"7.x"}},"base":{"label":"discoverygarden:7.x","ref":"7.x","sha":"b180a73db549b691d70bea38cbb1832d12bc32ee","user":{"login":"discoverygarden","id":598560,"avatar_url":"https://avatars.githubusercontent.com/u/598560?v=3","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"repo":{"id":25922288,"name":"islandora_usage_stats","full_name":"discoverygarden/islandora_usage_stats","owner":{"login":"discoverygarden","id":598560,"avatar_url":"https://avatars.githubusercontent.com/u/598560?v=3","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/discoverygarden/islandora_usage_stats","description":"Track views of islandora items","fork":true,"url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats","forks_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/forks","keys_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/teams","hooks_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/hooks","issue_events_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/events{/number}","events_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/events","assignees_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/assignees{/user}","branches_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/branches{/branch}","tags_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/tags","blobs_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/statuses/{sha}","languages_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/languages","stargazers_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/stargazers","contributors_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/contributors","subscribers_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/subscribers","subscription_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/subscription","commits_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/contents/{+path}","compare_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/merges","archive_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/downloads","issues_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues{/number}","pulls_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls{/number}","milestones_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/milestones{/number}","notifications_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/labels{/name}","releases_url":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/releases{/id}","created_at":"2014-10-29T13:32:47Z","updated_at":"2014-12-04T16:39:22Z","pushed_at":"2015-03-24T12:30:44Z","git_url":"git://github.com/discoverygarden/islandora_usage_stats.git","ssh_url":"git@github.com:discoverygarden/islandora_usage_stats.git","clone_url":"https://github.com/discoverygarden/islandora_usage_stats.git","svn_url":"https://github.com/discoverygarden/islandora_usage_stats","homepage":null,"size":1140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"7.x"}},"_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27"},"html":{"href":"https://github.com/discoverygarden/islandora_usage_stats/pull/27"},"issue":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/27"},"comments":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/discoverygarden/islandora_usage_stats/statuses/878d8d15c466202c18c8cd52e0ec1d4a6a9cc710"}}}}