{"action":"created","comment":{"url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/comments/91505701","pull_request_review_id":12013728,"id":91505701,"diff_hunk":"@@ -0,0 +1,93 @@\n+<?php\n+\n+/**\n+ * @file\n+ * Main file for module 'training_homework_forms'.\n+ */\n+\n+/**\n+ * Implements hook_form_alter().\n+ */\n+function training_homework_forms_form_alter(&$form, &$form_state, $form_id) {\n+  switch ($form_id) {\n+    case 'user_login_block':\n+      $form['secret_key'] = array(\n+        '#type' => 'textfield',\n+        '#title' => t('Secret key'),\n+        '#maxlength' => 15,\n+        '#size' => 15,\n+        '#required' => FALSE,\n+      );\n+      if (!empty($form_state['input']['secret_key'])) {\n+        unset($form['#validate']);\n+        $form['name']['#required'] = FALSE;\n+        $form['pass']['#required'] = FALSE;\n+      }\n+      $form['#theme'] = 'training_homework_forms_form_login_table';\n+      $form['#submit'][] = 'training_homework_forms_submit';\n+      $form['#validate'][] = 'training_homework_forms_validate';\n+  }\n+}\n+\n+/**\n+ * Implements hook_validate().","path":"docroot/sites/all/modules/custom/training_homework_forms/training_homework_forms.module","position":33,"original_position":33,"commit_id":"94a3b54c7e7c0e14539aa4b2eaa1db57a7e03dfc","original_commit_id":"94a3b54c7e7c0e14539aa4b2eaa1db57a7e03dfc","user":{"login":"dprudnikov","id":9367836,"avatar_url":"https://avatars.githubusercontent.com/u/9367836?v=3","gravatar_id":"","url":"https://api.github.com/users/dprudnikov","html_url":"https://github.com/dprudnikov","followers_url":"https://api.github.com/users/dprudnikov/followers","following_url":"https://api.github.com/users/dprudnikov/following{/other_user}","gists_url":"https://api.github.com/users/dprudnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/dprudnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dprudnikov/subscriptions","organizations_url":"https://api.github.com/users/dprudnikov/orgs","repos_url":"https://api.github.com/users/dprudnikov/repos","events_url":"https://api.github.com/users/dprudnikov/events{/privacy}","received_events_url":"https://api.github.com/users/dprudnikov/received_events","type":"User","site_admin":false},"body":"Incorrect comment","created_at":"2016-12-08T12:38:34Z","updated_at":"2016-12-08T12:38:34Z","html_url":"https://github.com/dkorhov/drupal_training/pull/8#discussion_r91505701","pull_request_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/comments/91505701"},"html":{"href":"https://github.com/dkorhov/drupal_training/pull/8#discussion_r91505701"},"pull_request":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8","id":97109013,"html_url":"https://github.com/dkorhov/drupal_training/pull/8","diff_url":"https://github.com/dkorhov/drupal_training/pull/8.diff","patch_url":"https://github.com/dkorhov/drupal_training/pull/8.patch","issue_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/8","number":8,"state":"open","locked":false,"title":"Form tasks","user":{"login":"dkorhov","id":24305940,"avatar_url":"https://avatars.githubusercontent.com/u/24305940?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorhov","html_url":"https://github.com/dkorhov","followers_url":"https://api.github.com/users/dkorhov/followers","following_url":"https://api.github.com/users/dkorhov/following{/other_user}","gists_url":"https://api.github.com/users/dkorhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorhov/subscriptions","organizations_url":"https://api.github.com/users/dkorhov/orgs","repos_url":"https://api.github.com/users/dkorhov/repos","events_url":"https://api.github.com/users/dkorhov/events{/privacy}","received_events_url":"https://api.github.com/users/dkorhov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-08T11:59:15Z","updated_at":"2016-12-08T12:38:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"794521b9dac0260d6cb0c48857cb0775b7367c10","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8/commits","review_comments_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8/comments","review_comment_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/8/comments","statuses_url":"https://api.github.com/repos/dkorhov/drupal_training/statuses/94a3b54c7e7c0e14539aa4b2eaa1db57a7e03dfc","head":{"label":"dkorhov:form_tasks","ref":"form_tasks","sha":"94a3b54c7e7c0e14539aa4b2eaa1db57a7e03dfc","user":{"login":"dkorhov","id":24305940,"avatar_url":"https://avatars.githubusercontent.com/u/24305940?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorhov","html_url":"https://github.com/dkorhov","followers_url":"https://api.github.com/users/dkorhov/followers","following_url":"https://api.github.com/users/dkorhov/following{/other_user}","gists_url":"https://api.github.com/users/dkorhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorhov/subscriptions","organizations_url":"https://api.github.com/users/dkorhov/orgs","repos_url":"https://api.github.com/users/dkorhov/repos","events_url":"https://api.github.com/users/dkorhov/events{/privacy}","received_events_url":"https://api.github.com/users/dkorhov/received_events","type":"User","site_admin":false},"repo":{"id":75344880,"name":"drupal_training","full_name":"dkorhov/drupal_training","owner":{"login":"dkorhov","id":24305940,"avatar_url":"https://avatars.githubusercontent.com/u/24305940?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorhov","html_url":"https://github.com/dkorhov","followers_url":"https://api.github.com/users/dkorhov/followers","following_url":"https://api.github.com/users/dkorhov/following{/other_user}","gists_url":"https://api.github.com/users/dkorhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorhov/subscriptions","organizations_url":"https://api.github.com/users/dkorhov/orgs","repos_url":"https://api.github.com/users/dkorhov/repos","events_url":"https://api.github.com/users/dkorhov/events{/privacy}","received_events_url":"https://api.github.com/users/dkorhov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkorhov/drupal_training","description":null,"fork":false,"url":"https://api.github.com/repos/dkorhov/drupal_training","forks_url":"https://api.github.com/repos/dkorhov/drupal_training/forks","keys_url":"https://api.github.com/repos/dkorhov/drupal_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkorhov/drupal_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkorhov/drupal_training/teams","hooks_url":"https://api.github.com/repos/dkorhov/drupal_training/hooks","issue_events_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/events{/number}","events_url":"https://api.github.com/repos/dkorhov/drupal_training/events","assignees_url":"https://api.github.com/repos/dkorhov/drupal_training/assignees{/user}","branches_url":"https://api.github.com/repos/dkorhov/drupal_training/branches{/branch}","tags_url":"https://api.github.com/repos/dkorhov/drupal_training/tags","blobs_url":"https://api.github.com/repos/dkorhov/drupal_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkorhov/drupal_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkorhov/drupal_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkorhov/drupal_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkorhov/drupal_training/statuses/{sha}","languages_url":"https://api.github.com/repos/dkorhov/drupal_training/languages","stargazers_url":"https://api.github.com/repos/dkorhov/drupal_training/stargazers","contributors_url":"https://api.github.com/repos/dkorhov/drupal_training/contributors","subscribers_url":"https://api.github.com/repos/dkorhov/drupal_training/subscribers","subscription_url":"https://api.github.com/repos/dkorhov/drupal_training/subscription","commits_url":"https://api.github.com/repos/dkorhov/drupal_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkorhov/drupal_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkorhov/drupal_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkorhov/drupal_training/contents/{+path}","compare_url":"https://api.github.com/repos/dkorhov/drupal_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkorhov/drupal_training/merges","archive_url":"https://api.github.com/repos/dkorhov/drupal_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkorhov/drupal_training/downloads","issues_url":"https://api.github.com/repos/dkorhov/drupal_training/issues{/number}","pulls_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls{/number}","milestones_url":"https://api.github.com/repos/dkorhov/drupal_training/milestones{/number}","notifications_url":"https://api.github.com/repos/dkorhov/drupal_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkorhov/drupal_training/labels{/name}","releases_url":"https://api.github.com/repos/dkorhov/drupal_training/releases{/id}","deployments_url":"https://api.github.com/repos/dkorhov/drupal_training/deployments","created_at":"2016-12-02T00:26:13Z","updated_at":"2016-12-02T12:00:02Z","pushed_at":"2016-12-08T12:02:49Z","git_url":"git://github.com/dkorhov/drupal_training.git","ssh_url":"git@github.com:dkorhov/drupal_training.git","clone_url":"https://github.com/dkorhov/drupal_training.git","svn_url":"https://github.com/dkorhov/drupal_training","homepage":null,"size":3468,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"dkorhov:master","ref":"master","sha":"29b16a133c45eb02406945ac5d63f32521434144","user":{"login":"dkorhov","id":24305940,"avatar_url":"https://avatars.githubusercontent.com/u/24305940?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorhov","html_url":"https://github.com/dkorhov","followers_url":"https://api.github.com/users/dkorhov/followers","following_url":"https://api.github.com/users/dkorhov/following{/other_user}","gists_url":"https://api.github.com/users/dkorhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorhov/subscriptions","organizations_url":"https://api.github.com/users/dkorhov/orgs","repos_url":"https://api.github.com/users/dkorhov/repos","events_url":"https://api.github.com/users/dkorhov/events{/privacy}","received_events_url":"https://api.github.com/users/dkorhov/received_events","type":"User","site_admin":false},"repo":{"id":75344880,"name":"drupal_training","full_name":"dkorhov/drupal_training","owner":{"login":"dkorhov","id":24305940,"avatar_url":"https://avatars.githubusercontent.com/u/24305940?v=3","gravatar_id":"","url":"https://api.github.com/users/dkorhov","html_url":"https://github.com/dkorhov","followers_url":"https://api.github.com/users/dkorhov/followers","following_url":"https://api.github.com/users/dkorhov/following{/other_user}","gists_url":"https://api.github.com/users/dkorhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkorhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkorhov/subscriptions","organizations_url":"https://api.github.com/users/dkorhov/orgs","repos_url":"https://api.github.com/users/dkorhov/repos","events_url":"https://api.github.com/users/dkorhov/events{/privacy}","received_events_url":"https://api.github.com/users/dkorhov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkorhov/drupal_training","description":null,"fork":false,"url":"https://api.github.com/repos/dkorhov/drupal_training","forks_url":"https://api.github.com/repos/dkorhov/drupal_training/forks","keys_url":"https://api.github.com/repos/dkorhov/drupal_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkorhov/drupal_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkorhov/drupal_training/teams","hooks_url":"https://api.github.com/repos/dkorhov/drupal_training/hooks","issue_events_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/events{/number}","events_url":"https://api.github.com/repos/dkorhov/drupal_training/events","assignees_url":"https://api.github.com/repos/dkorhov/drupal_training/assignees{/user}","branches_url":"https://api.github.com/repos/dkorhov/drupal_training/branches{/branch}","tags_url":"https://api.github.com/repos/dkorhov/drupal_training/tags","blobs_url":"https://api.github.com/repos/dkorhov/drupal_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkorhov/drupal_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkorhov/drupal_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkorhov/drupal_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkorhov/drupal_training/statuses/{sha}","languages_url":"https://api.github.com/repos/dkorhov/drupal_training/languages","stargazers_url":"https://api.github.com/repos/dkorhov/drupal_training/stargazers","contributors_url":"https://api.github.com/repos/dkorhov/drupal_training/contributors","subscribers_url":"https://api.github.com/repos/dkorhov/drupal_training/subscribers","subscription_url":"https://api.github.com/repos/dkorhov/drupal_training/subscription","commits_url":"https://api.github.com/repos/dkorhov/drupal_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkorhov/drupal_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkorhov/drupal_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkorhov/drupal_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkorhov/drupal_training/contents/{+path}","compare_url":"https://api.github.com/repos/dkorhov/drupal_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkorhov/drupal_training/merges","archive_url":"https://api.github.com/repos/dkorhov/drupal_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkorhov/drupal_training/downloads","issues_url":"https://api.github.com/repos/dkorhov/drupal_training/issues{/number}","pulls_url":"https://api.github.com/repos/dkorhov/drupal_training/pulls{/number}","milestones_url":"https://api.github.com/repos/dkorhov/drupal_training/milestones{/number}","notifications_url":"https://api.github.com/repos/dkorhov/drupal_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkorhov/drupal_training/labels{/name}","releases_url":"https://api.github.com/repos/dkorhov/drupal_training/releases{/id}","deployments_url":"https://api.github.com/repos/dkorhov/drupal_training/deployments","created_at":"2016-12-02T00:26:13Z","updated_at":"2016-12-02T12:00:02Z","pushed_at":"2016-12-08T12:02:49Z","git_url":"git://github.com/dkorhov/drupal_training.git","ssh_url":"git@github.com:dkorhov/drupal_training.git","clone_url":"https://github.com/dkorhov/drupal_training.git","svn_url":"https://github.com/dkorhov/drupal_training","homepage":null,"size":3468,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8"},"html":{"href":"https://github.com/dkorhov/drupal_training/pull/8"},"issue":{"href":"https://api.github.com/repos/dkorhov/drupal_training/issues/8"},"comments":{"href":"https://api.github.com/repos/dkorhov/drupal_training/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dkorhov/drupal_training/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/dkorhov/drupal_training/statuses/94a3b54c7e7c0e14539aa4b2eaa1db57a7e03dfc"}}}}
{"actor":{"display_login":"dprudnikov"}}