{"action":"created","comment":{"url":"https://api.github.com/repos/openscholar/openscholar/pulls/comments/32196437","id":32196437,"diff_hunk":"@@ -1098,12 +1107,52 @@ function os_events_preprocess_table(&$variables) {\n   ));\n \n   // Remove the \"count\" and the \"states\" from the table head.\n-  unset($variables['header'][4], $variables['header'][6]);\n+  unset($variables['header'][0], $variables['header'][4], $variables['header'][6]);\n \n   // Remove the \"count\" and the \"states\" from each table row.\n   foreach (array_keys($variables['rows']) as $delta) {\n-    unset($variables['rows'][$delta][4], $variables['rows'][$delta][6]);\n+    unset($variables['rows'][$delta][0], $variables['rows'][$delta][4], $variables['rows'][$delta][6]);\n+  }\n+}\n+\n+/**\n+ * Implements hook_preprocess_page().\n+ *\n+ * Add a dropdown menu for the registration page.\n+ */\n+function os_events_preprocess_page(&$variables) {\n+  $menu = menu_get_item();\n+  if (strpos($menu['path'], 'node/%/registrations') !== 0) {\n+    return;\n+  }\n+\n+  // Remove the \"Simple view\" tab from the navigation tabs.\n+  foreach ($variables['tabs']['#secondary'] as $index => $tab) {\n+    if ($tab['#link']['title'] == 'Simple view') {\n+      unset($variables['tabs']['#secondary'][$index]);\n+      break;\n+    }\n   }\n+\n+  // Create dropdown links for simple view and export of registrants.\n+  $event_id = $menu['original_map'][1];\n+  $registration_links = array(\n+    'export' => array(\n+      'title' => t('Export'),","path":"openscholar/modules/os_features/os_events/os_events.module","position":70,"original_position":70,"commit_id":"644fb5f5f42ba3dbceaa2c6b4692f62d36143a83","original_commit_id":"644fb5f5f42ba3dbceaa2c6b4692f62d36143a83","user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"body":"CSV","created_at":"2015-06-11T07:41:48Z","updated_at":"2015-06-11T07:41:48Z","html_url":"https://github.com/openscholar/openscholar/pull/7232#discussion_r32196437","pull_request_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7232","_links":{"self":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/comments/32196437"},"html":{"href":"https://github.com/openscholar/openscholar/pull/7232#discussion_r32196437"},"pull_request":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7232"}}},"pull_request":{"url":"https://api.github.com/repos/openscholar/openscholar/pulls/7232","id":37351629,"html_url":"https://github.com/openscholar/openscholar/pull/7232","diff_url":"https://github.com/openscholar/openscholar/pull/7232.diff","patch_url":"https://github.com/openscholar/openscholar/pull/7232.patch","issue_url":"https://api.github.com/repos/openscholar/openscholar/issues/7232","number":7232,"state":"open","locked":false,"title":"Export attendees to CSV","user":{"login":"RoySegall","id":1222368,"avatar_url":"https://avatars.githubusercontent.com/u/1222368?v=3","gravatar_id":"","url":"https://api.github.com/users/RoySegall","html_url":"https://github.com/RoySegall","followers_url":"https://api.github.com/users/RoySegall/followers","following_url":"https://api.github.com/users/RoySegall/following{/other_user}","gists_url":"https://api.github.com/users/RoySegall/gists{/gist_id}","starred_url":"https://api.github.com/users/RoySegall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoySegall/subscriptions","organizations_url":"https://api.github.com/users/RoySegall/orgs","repos_url":"https://api.github.com/users/RoySegall/repos","events_url":"https://api.github.com/users/RoySegall/events{/privacy}","received_events_url":"https://api.github.com/users/RoySegall/received_events","type":"User","site_admin":false},"body":"#7206\r\n\r\n![selection_440](https://cloud.githubusercontent.com/assets/1222368/8082040/d0370e12-0f82-11e5-87f0-a0d17b15bd7f.png)\r\n![selection_443](https://cloud.githubusercontent.com/assets/1222368/8082050/d4b39e74-0f82-11e5-8fce-03cda722ea04.png)\r\n","created_at":"2015-06-10T12:09:50Z","updated_at":"2015-06-11T07:41:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3cae7c7075b3f109498c791b1d9e07bf54ff7300","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7232/commits","review_comments_url":"https://api.github.com/repos/openscholar/openscholar/pulls/7232/comments","review_comment_url":"https://api.github.com/repos/openscholar/openscholar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openscholar/openscholar/issues/7232/comments","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/644fb5f5f42ba3dbceaa2c6b4692f62d36143a83","head":{"label":"openscholar:7206","ref":"7206","sha":"644fb5f5f42ba3dbceaa2c6b4692f62d36143a83","user":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"repo":{"id":1440092,"name":"openscholar","full_name":"openscholar/openscholar","owner":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscholar/openscholar","description":"OpenScholar project ","fork":false,"url":"https://api.github.com/repos/openscholar/openscholar","forks_url":"https://api.github.com/repos/openscholar/openscholar/forks","keys_url":"https://api.github.com/repos/openscholar/openscholar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscholar/openscholar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscholar/openscholar/teams","hooks_url":"https://api.github.com/repos/openscholar/openscholar/hooks","issue_events_url":"https://api.github.com/repos/openscholar/openscholar/issues/events{/number}","events_url":"https://api.github.com/repos/openscholar/openscholar/events","assignees_url":"https://api.github.com/repos/openscholar/openscholar/assignees{/user}","branches_url":"https://api.github.com/repos/openscholar/openscholar/branches{/branch}","tags_url":"https://api.github.com/repos/openscholar/openscholar/tags","blobs_url":"https://api.github.com/repos/openscholar/openscholar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscholar/openscholar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscholar/openscholar/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscholar/openscholar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/{sha}","languages_url":"https://api.github.com/repos/openscholar/openscholar/languages","stargazers_url":"https://api.github.com/repos/openscholar/openscholar/stargazers","contributors_url":"https://api.github.com/repos/openscholar/openscholar/contributors","subscribers_url":"https://api.github.com/repos/openscholar/openscholar/subscribers","subscription_url":"https://api.github.com/repos/openscholar/openscholar/subscription","commits_url":"https://api.github.com/repos/openscholar/openscholar/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscholar/openscholar/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscholar/openscholar/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscholar/openscholar/issues/comments{/number}","contents_url":"https://api.github.com/repos/openscholar/openscholar/contents/{+path}","compare_url":"https://api.github.com/repos/openscholar/openscholar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscholar/openscholar/merges","archive_url":"https://api.github.com/repos/openscholar/openscholar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscholar/openscholar/downloads","issues_url":"https://api.github.com/repos/openscholar/openscholar/issues{/number}","pulls_url":"https://api.github.com/repos/openscholar/openscholar/pulls{/number}","milestones_url":"https://api.github.com/repos/openscholar/openscholar/milestones{/number}","notifications_url":"https://api.github.com/repos/openscholar/openscholar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscholar/openscholar/labels{/name}","releases_url":"https://api.github.com/repos/openscholar/openscholar/releases{/id}","created_at":"2011-03-04T16:39:08Z","updated_at":"2015-05-10T20:12:56Z","pushed_at":"2015-06-11T07:36:25Z","git_url":"git://github.com/openscholar/openscholar.git","ssh_url":"git@github.com:openscholar/openscholar.git","clone_url":"https://github.com/openscholar/openscholar.git","svn_url":"https://github.com/openscholar/openscholar","homepage":"http://theopenscholar.org","size":157733,"stargazers_count":137,"watchers_count":137,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":420,"forks":60,"open_issues":420,"watchers":137,"default_branch":"SCHOLAR-3.x"}},"base":{"label":"openscholar:SCHOLAR-3.x","ref":"SCHOLAR-3.x","sha":"85db20508c3e9ecf73020610f88f4fe19992398a","user":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"repo":{"id":1440092,"name":"openscholar","full_name":"openscholar/openscholar","owner":{"login":"openscholar","id":611073,"avatar_url":"https://avatars.githubusercontent.com/u/611073?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar","html_url":"https://github.com/openscholar","followers_url":"https://api.github.com/users/openscholar/followers","following_url":"https://api.github.com/users/openscholar/following{/other_user}","gists_url":"https://api.github.com/users/openscholar/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar/subscriptions","organizations_url":"https://api.github.com/users/openscholar/orgs","repos_url":"https://api.github.com/users/openscholar/repos","events_url":"https://api.github.com/users/openscholar/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscholar/openscholar","description":"OpenScholar project ","fork":false,"url":"https://api.github.com/repos/openscholar/openscholar","forks_url":"https://api.github.com/repos/openscholar/openscholar/forks","keys_url":"https://api.github.com/repos/openscholar/openscholar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscholar/openscholar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscholar/openscholar/teams","hooks_url":"https://api.github.com/repos/openscholar/openscholar/hooks","issue_events_url":"https://api.github.com/repos/openscholar/openscholar/issues/events{/number}","events_url":"https://api.github.com/repos/openscholar/openscholar/events","assignees_url":"https://api.github.com/repos/openscholar/openscholar/assignees{/user}","branches_url":"https://api.github.com/repos/openscholar/openscholar/branches{/branch}","tags_url":"https://api.github.com/repos/openscholar/openscholar/tags","blobs_url":"https://api.github.com/repos/openscholar/openscholar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscholar/openscholar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscholar/openscholar/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscholar/openscholar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscholar/openscholar/statuses/{sha}","languages_url":"https://api.github.com/repos/openscholar/openscholar/languages","stargazers_url":"https://api.github.com/repos/openscholar/openscholar/stargazers","contributors_url":"https://api.github.com/repos/openscholar/openscholar/contributors","subscribers_url":"https://api.github.com/repos/openscholar/openscholar/subscribers","subscription_url":"https://api.github.com/repos/openscholar/openscholar/subscription","commits_url":"https://api.github.com/repos/openscholar/openscholar/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscholar/openscholar/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscholar/openscholar/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscholar/openscholar/issues/comments{/number}","contents_url":"https://api.github.com/repos/openscholar/openscholar/contents/{+path}","compare_url":"https://api.github.com/repos/openscholar/openscholar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscholar/openscholar/merges","archive_url":"https://api.github.com/repos/openscholar/openscholar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscholar/openscholar/downloads","issues_url":"https://api.github.com/repos/openscholar/openscholar/issues{/number}","pulls_url":"https://api.github.com/repos/openscholar/openscholar/pulls{/number}","milestones_url":"https://api.github.com/repos/openscholar/openscholar/milestones{/number}","notifications_url":"https://api.github.com/repos/openscholar/openscholar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscholar/openscholar/labels{/name}","releases_url":"https://api.github.com/repos/openscholar/openscholar/releases{/id}","created_at":"2011-03-04T16:39:08Z","updated_at":"2015-05-10T20:12:56Z","pushed_at":"2015-06-11T07:36:25Z","git_url":"git://github.com/openscholar/openscholar.git","ssh_url":"git@github.com:openscholar/openscholar.git","clone_url":"https://github.com/openscholar/openscholar.git","svn_url":"https://github.com/openscholar/openscholar","homepage":"http://theopenscholar.org","size":157733,"stargazers_count":137,"watchers_count":137,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":420,"forks":60,"open_issues":420,"watchers":137,"default_branch":"SCHOLAR-3.x"}},"_links":{"self":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7232"},"html":{"href":"https://github.com/openscholar/openscholar/pull/7232"},"issue":{"href":"https://api.github.com/repos/openscholar/openscholar/issues/7232"},"comments":{"href":"https://api.github.com/repos/openscholar/openscholar/issues/7232/comments"},"review_comments":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7232/comments"},"review_comment":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openscholar/openscholar/pulls/7232/commits"},"statuses":{"href":"https://api.github.com/repos/openscholar/openscholar/statuses/644fb5f5f42ba3dbceaa2c6b4692f62d36143a83"}}}}