{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments/46337890","id":46337890,"diff_hunk":"@@ -759,7 +759,8 @@ function dosomething_campaign_add_shipment_form_vars($node) {\n  * @return bool\n  */\n function dosomething_campaign_is_hot_module($vars) {\n-  if (isset($vars['field_high_season'])) {\n+  $hot_module_enabled = dosomething_helpers_get_variable('node', $vars['nid'], 'hot_module_enabled');","path":"lib/modules/dosomething/dosomething_campaign/dosomething_campaign.module","position":5,"original_position":5,"commit_id":"ca21f486ac3c8a93d020b44b9aa7b5a9e9ec59a1","original_commit_id":"c49893fe2c2ec1bc9446ceaa1d7ef576a8455f91","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"body":"reversed, everything seems good","created_at":"2015-12-01T20:58:54Z","updated_at":"2015-12-01T20:58:54Z","html_url":"https://github.com/DoSomething/phoenix/pull/5857#discussion_r46337890","pull_request_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments/46337890"},"html":{"href":"https://github.com/DoSomething/phoenix/pull/5857#discussion_r46337890"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857","id":52302440,"html_url":"https://github.com/DoSomething/phoenix/pull/5857","diff_url":"https://github.com/DoSomething/phoenix/pull/5857.diff","patch_url":"https://github.com/DoSomething/phoenix/pull/5857.patch","issue_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5857","number":5857,"state":"open","locked":false,"title":"Adds hotmodule toggle to custom settings","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"body":"#### What's this PR do?\r\nAdds a custom toggle switch to the custom settings of a node under \"goals\", that is by default off.\r\n\r\nIf this switch is enabled & the high season is set the hot module & win module will display. \r\n\r\n#### Where should the reviewer start?\r\nVariable created in dosomething_helpers.variables.inc -- after that its used in the dosomething_campaign module.\r\n\r\n#### How should this be manually tested?\r\nSet the high season of a campaign to end sometime in the coming days. Verify the hotmodule does not display.\r\nThen go to the campaign custom settings and enable the hotmodule.\r\nDoes the hotmodule display now?\r\n\r\nNext set the end season date to a few days ago, does the win module display?\r\nDisable the hot module in custom settings, does the win module still display?\r\n\r\n#### Any background context you want to provide?\r\nEverything is covered in the issue comments\r\n\r\n#### What are the relevant tickets?\r\nFixes #5827\r\n\r\n#### Screenshots (if appropriate)\r\n![screen shot 2015-12-01 at 2 19 14 pm](https://cloud.githubusercontent.com/assets/897368/11511347/a591234a-9836-11e5-9857-b408eb17cf2e.png)\r\n","created_at":"2015-12-01T19:20:22Z","updated_at":"2015-12-01T20:58:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"112a0e72ae51402ff6dc8f3c74ba7377e0933ebc","assignee":{"login":"weerd","id":105849,"avatar_url":"https://avatars.githubusercontent.com/u/105849?v=3","gravatar_id":"","url":"https://api.github.com/users/weerd","html_url":"https://github.com/weerd","followers_url":"https://api.github.com/users/weerd/followers","following_url":"https://api.github.com/users/weerd/following{/other_user}","gists_url":"https://api.github.com/users/weerd/gists{/gist_id}","starred_url":"https://api.github.com/users/weerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weerd/subscriptions","organizations_url":"https://api.github.com/users/weerd/orgs","repos_url":"https://api.github.com/users/weerd/repos","events_url":"https://api.github.com/users/weerd/events{/privacy}","received_events_url":"https://api.github.com/users/weerd/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857/commits","review_comments_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857/comments","review_comment_url":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/issues/5857/comments","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/ca21f486ac3c8a93d020b44b9aa7b5a9e9ec59a1","head":{"label":"deadlybutter:5827","ref":"5827","sha":"ca21f486ac3c8a93d020b44b9aa7b5a9e9ec59a1","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"repo":{"id":43687372,"name":"phoenix","full_name":"deadlybutter/phoenix","owner":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deadlybutter/phoenix","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":true,"url":"https://api.github.com/repos/deadlybutter/phoenix","forks_url":"https://api.github.com/repos/deadlybutter/phoenix/forks","keys_url":"https://api.github.com/repos/deadlybutter/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deadlybutter/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deadlybutter/phoenix/teams","hooks_url":"https://api.github.com/repos/deadlybutter/phoenix/hooks","issue_events_url":"https://api.github.com/repos/deadlybutter/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/deadlybutter/phoenix/events","assignees_url":"https://api.github.com/repos/deadlybutter/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/deadlybutter/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/deadlybutter/phoenix/tags","blobs_url":"https://api.github.com/repos/deadlybutter/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deadlybutter/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deadlybutter/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/deadlybutter/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deadlybutter/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/deadlybutter/phoenix/languages","stargazers_url":"https://api.github.com/repos/deadlybutter/phoenix/stargazers","contributors_url":"https://api.github.com/repos/deadlybutter/phoenix/contributors","subscribers_url":"https://api.github.com/repos/deadlybutter/phoenix/subscribers","subscription_url":"https://api.github.com/repos/deadlybutter/phoenix/subscription","commits_url":"https://api.github.com/repos/deadlybutter/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/deadlybutter/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/deadlybutter/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/deadlybutter/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/deadlybutter/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/deadlybutter/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deadlybutter/phoenix/merges","archive_url":"https://api.github.com/repos/deadlybutter/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deadlybutter/phoenix/downloads","issues_url":"https://api.github.com/repos/deadlybutter/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/deadlybutter/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/deadlybutter/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/deadlybutter/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deadlybutter/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/deadlybutter/phoenix/releases{/id}","created_at":"2015-10-05T13:56:21Z","updated_at":"2015-10-05T13:56:26Z","pushed_at":"2015-12-01T20:58:28Z","git_url":"git://github.com/deadlybutter/phoenix.git","ssh_url":"git@github.com:deadlybutter/phoenix.git","clone_url":"https://github.com/deadlybutter/phoenix.git","svn_url":"https://github.com/deadlybutter/phoenix","homepage":"http://www.dosomething.org/","size":15491,"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":"dev"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"be73e4c425d986f71174c17393c7e61695ccf5dd","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":13592927,"name":"phoenix","full_name":"DoSomething/phoenix","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/phoenix","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":false,"url":"https://api.github.com/repos/DoSomething/phoenix","forks_url":"https://api.github.com/repos/DoSomething/phoenix/forks","keys_url":"https://api.github.com/repos/DoSomething/phoenix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/phoenix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/phoenix/teams","hooks_url":"https://api.github.com/repos/DoSomething/phoenix/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/phoenix/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/phoenix/events","assignees_url":"https://api.github.com/repos/DoSomething/phoenix/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/phoenix/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/phoenix/tags","blobs_url":"https://api.github.com/repos/DoSomething/phoenix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/phoenix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/phoenix/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/phoenix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/phoenix/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/phoenix/languages","stargazers_url":"https://api.github.com/repos/DoSomething/phoenix/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/phoenix/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/phoenix/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/phoenix/subscription","commits_url":"https://api.github.com/repos/DoSomething/phoenix/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/phoenix/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/phoenix/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/phoenix/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/phoenix/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/phoenix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/phoenix/merges","archive_url":"https://api.github.com/repos/DoSomething/phoenix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/phoenix/downloads","issues_url":"https://api.github.com/repos/DoSomething/phoenix/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/phoenix/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/phoenix/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/phoenix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/phoenix/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/phoenix/releases{/id}","created_at":"2013-10-15T14:50:48Z","updated_at":"2015-11-22T05:11:09Z","pushed_at":"2015-12-01T20:58:29Z","git_url":"git://github.com/DoSomething/phoenix.git","ssh_url":"git@github.com:DoSomething/phoenix.git","clone_url":"https://github.com/DoSomething/phoenix.git","svn_url":"https://github.com/DoSomething/phoenix","homepage":"http://www.dosomething.org/","size":16133,"stargazers_count":27,"watchers_count":27,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":276,"forks":19,"open_issues":276,"watchers":27,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857"},"html":{"href":"https://github.com/DoSomething/phoenix/pull/5857"},"issue":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/5857"},"comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/issues/5857/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/phoenix/pulls/5857/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/phoenix/statuses/ca21f486ac3c8a93d020b44b9aa7b5a9e9ec59a1"}}}}