{"action":"created","comment":{"url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/comments/48108620","id":48108620,"diff_hunk":"@@ -55,10 +77,53 @@ function inope_policy_review_tab_title_callback($node) {\n  *   policy nodes.\n  */\n function inope_policy_review_page($node) {\n-  // Create a build array to be displayed on the page.\n-  $build = array(\n-    'inope_policy_review_form' => drupal_get_form('inope_policy_review_form', $node),\n-  );\n+  global $user;\n+  $account = $user;\n+  $build = array();\n+  $policy_review_id = NULL;\n+\n+  // Get the parameters passed in the url and if possible set policy_review_id.\n+  $get_params = drupal_get_query_parameters();\n+  if (!empty($get_params['id'])) {\n+    $policy_review_id = $get_params['id'];","path":"modules/custom/inope_policy_review/inope_policy_review.module","position":47,"original_position":47,"commit_id":"3d927ec57afc3de4dae151f878d1974417545537","original_commit_id":"3d927ec57afc3de4dae151f878d1974417545537","user":{"login":"thebruce","id":590058,"avatar_url":"https://avatars.githubusercontent.com/u/590058?v=3","gravatar_id":"","url":"https://api.github.com/users/thebruce","html_url":"https://github.com/thebruce","followers_url":"https://api.github.com/users/thebruce/followers","following_url":"https://api.github.com/users/thebruce/following{/other_user}","gists_url":"https://api.github.com/users/thebruce/gists{/gist_id}","starred_url":"https://api.github.com/users/thebruce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebruce/subscriptions","organizations_url":"https://api.github.com/users/thebruce/orgs","repos_url":"https://api.github.com/users/thebruce/repos","events_url":"https://api.github.com/users/thebruce/events{/privacy}","received_events_url":"https://api.github.com/users/thebruce/received_events","type":"User","site_admin":false},"body":"Might look into https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_get_query_parameters/7\r\n","created_at":"2015-12-20T21:40:29Z","updated_at":"2015-12-20T21:40:29Z","html_url":"https://github.com/ccjjmartin/aquifer-inope/pull/4#discussion_r48108620","pull_request_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/comments/48108620"},"html":{"href":"https://github.com/ccjjmartin/aquifer-inope/pull/4#discussion_r48108620"},"pull_request":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4","id":54195176,"html_url":"https://github.com/ccjjmartin/aquifer-inope/pull/4","diff_url":"https://github.com/ccjjmartin/aquifer-inope/pull/4.diff","patch_url":"https://github.com/ccjjmartin/aquifer-inope/pull/4.patch","issue_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/4","number":4,"state":"open","locked":false,"title":"Challenge3 - Retrieving and displaying values","user":{"login":"ccjjmartin","id":12279982,"avatar_url":"https://avatars.githubusercontent.com/u/12279982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjjmartin","html_url":"https://github.com/ccjjmartin","followers_url":"https://api.github.com/users/ccjjmartin/followers","following_url":"https://api.github.com/users/ccjjmartin/following{/other_user}","gists_url":"https://api.github.com/users/ccjjmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjjmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjjmartin/subscriptions","organizations_url":"https://api.github.com/users/ccjjmartin/orgs","repos_url":"https://api.github.com/users/ccjjmartin/repos","events_url":"https://api.github.com/users/ccjjmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ccjjmartin/received_events","type":"User","site_admin":false},"body":"This PR seeks to:\r\n* Create a table presentation of the data.\r\n* Add a table sort to the data.\r\n* Allow users to change their answer.\r\n* Add indicators alerting the user they need to respond to the policy.\r\n* Limit responses to only the current user on the current node.\r\n\r\n## Steps to test involve:\r\n* Run update.php on sites that have already been running the module.\r\n  * To test that update.php worked properly your boolean values for note_status should now be inverted.\r\n* Visit a new node:\r\n  * Check that the Review of @node_title now has (NEW) at the end of the title.\r\n  * Check that a status message alerts the user that they need to respond to the policy.\r\n* As an administrator make an update to a node and create a new revision:\r\n  * Check that the Review of @node_title now has (UPDATED) at the end of the title.\r\n  * Check that a status message alerts the user that they need to update their response to the policy.\r\n* After you have gone through at least two revisions:\r\n  * Visit the Review of @node_title tab and verify that a table is appearing.\r\n  * Verify that you have the proper number of responses for only your user.\r\n  * Verify that no other node's responses are appearing in the table.\r\n* Once you have verified that the responses are appearing properly:\r\n  * Verify that the default order of the data is DESC by date.\r\n  * If you already reordered the data remove any query parameters at the end of the URL.\r\n  * Try reordering the data by clicking on the headers.\r\n* Great!  We are almost there.\r\n  * Click the edit button next to a previously submitted response.\r\n  * Change your response.\r\n  * Verify that the response was updated.","created_at":"2015-12-20T08:21:05Z","updated_at":"2015-12-20T21:40:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06b1befb03a9ff8f95cd01ddc15e75407f9c4f8c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/4/comments","statuses_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/statuses/3d927ec57afc3de4dae151f878d1974417545537","head":{"label":"ccjjmartin:challenge3","ref":"challenge3","sha":"3d927ec57afc3de4dae151f878d1974417545537","user":{"login":"ccjjmartin","id":12279982,"avatar_url":"https://avatars.githubusercontent.com/u/12279982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjjmartin","html_url":"https://github.com/ccjjmartin","followers_url":"https://api.github.com/users/ccjjmartin/followers","following_url":"https://api.github.com/users/ccjjmartin/following{/other_user}","gists_url":"https://api.github.com/users/ccjjmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjjmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjjmartin/subscriptions","organizations_url":"https://api.github.com/users/ccjjmartin/orgs","repos_url":"https://api.github.com/users/ccjjmartin/repos","events_url":"https://api.github.com/users/ccjjmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ccjjmartin/received_events","type":"User","site_admin":false},"repo":{"id":48002533,"name":"aquifer-inope","full_name":"ccjjmartin/aquifer-inope","owner":{"login":"ccjjmartin","id":12279982,"avatar_url":"https://avatars.githubusercontent.com/u/12279982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjjmartin","html_url":"https://github.com/ccjjmartin","followers_url":"https://api.github.com/users/ccjjmartin/followers","following_url":"https://api.github.com/users/ccjjmartin/following{/other_user}","gists_url":"https://api.github.com/users/ccjjmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjjmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjjmartin/subscriptions","organizations_url":"https://api.github.com/users/ccjjmartin/orgs","repos_url":"https://api.github.com/users/ccjjmartin/repos","events_url":"https://api.github.com/users/ccjjmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ccjjmartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccjjmartin/aquifer-inope","description":"","fork":false,"url":"https://api.github.com/repos/ccjjmartin/aquifer-inope","forks_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/forks","keys_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/teams","hooks_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/hooks","issue_events_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/events{/number}","events_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/events","assignees_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/assignees{/user}","branches_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/branches{/branch}","tags_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/tags","blobs_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/statuses/{sha}","languages_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/languages","stargazers_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/stargazers","contributors_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/contributors","subscribers_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/subscribers","subscription_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/subscription","commits_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/contents/{+path}","compare_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/merges","archive_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/downloads","issues_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues{/number}","pulls_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls{/number}","milestones_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/milestones{/number}","notifications_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/labels{/name}","releases_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/releases{/id}","created_at":"2015-12-14T21:36:02Z","updated_at":"2015-12-17T20:36:44Z","pushed_at":"2015-12-20T12:03:53Z","git_url":"git://github.com/ccjjmartin/aquifer-inope.git","ssh_url":"git@github.com:ccjjmartin/aquifer-inope.git","clone_url":"https://github.com/ccjjmartin/aquifer-inope.git","svn_url":"https://github.com/ccjjmartin/aquifer-inope","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ccjjmartin:master","ref":"master","sha":"da9a87abc60274759665501a9f80d4dc16fb770f","user":{"login":"ccjjmartin","id":12279982,"avatar_url":"https://avatars.githubusercontent.com/u/12279982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjjmartin","html_url":"https://github.com/ccjjmartin","followers_url":"https://api.github.com/users/ccjjmartin/followers","following_url":"https://api.github.com/users/ccjjmartin/following{/other_user}","gists_url":"https://api.github.com/users/ccjjmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjjmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjjmartin/subscriptions","organizations_url":"https://api.github.com/users/ccjjmartin/orgs","repos_url":"https://api.github.com/users/ccjjmartin/repos","events_url":"https://api.github.com/users/ccjjmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ccjjmartin/received_events","type":"User","site_admin":false},"repo":{"id":48002533,"name":"aquifer-inope","full_name":"ccjjmartin/aquifer-inope","owner":{"login":"ccjjmartin","id":12279982,"avatar_url":"https://avatars.githubusercontent.com/u/12279982?v=3","gravatar_id":"","url":"https://api.github.com/users/ccjjmartin","html_url":"https://github.com/ccjjmartin","followers_url":"https://api.github.com/users/ccjjmartin/followers","following_url":"https://api.github.com/users/ccjjmartin/following{/other_user}","gists_url":"https://api.github.com/users/ccjjmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/ccjjmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccjjmartin/subscriptions","organizations_url":"https://api.github.com/users/ccjjmartin/orgs","repos_url":"https://api.github.com/users/ccjjmartin/repos","events_url":"https://api.github.com/users/ccjjmartin/events{/privacy}","received_events_url":"https://api.github.com/users/ccjjmartin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccjjmartin/aquifer-inope","description":"","fork":false,"url":"https://api.github.com/repos/ccjjmartin/aquifer-inope","forks_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/forks","keys_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/teams","hooks_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/hooks","issue_events_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/events{/number}","events_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/events","assignees_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/assignees{/user}","branches_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/branches{/branch}","tags_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/tags","blobs_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/statuses/{sha}","languages_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/languages","stargazers_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/stargazers","contributors_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/contributors","subscribers_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/subscribers","subscription_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/subscription","commits_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/contents/{+path}","compare_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/merges","archive_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/downloads","issues_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues{/number}","pulls_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls{/number}","milestones_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/milestones{/number}","notifications_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/labels{/name}","releases_url":"https://api.github.com/repos/ccjjmartin/aquifer-inope/releases{/id}","created_at":"2015-12-14T21:36:02Z","updated_at":"2015-12-17T20:36:44Z","pushed_at":"2015-12-20T12:03:53Z","git_url":"git://github.com/ccjjmartin/aquifer-inope.git","ssh_url":"git@github.com:ccjjmartin/aquifer-inope.git","clone_url":"https://github.com/ccjjmartin/aquifer-inope.git","svn_url":"https://github.com/ccjjmartin/aquifer-inope","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4"},"html":{"href":"https://github.com/ccjjmartin/aquifer-inope/pull/4"},"issue":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/4"},"comments":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ccjjmartin/aquifer-inope/statuses/3d927ec57afc3de4dae151f878d1974417545537"}}}}