{"action":"created","comment":{"url":"https://api.github.com/repos/acquia/acquia_lift/pulls/comments/29629345","id":29629345,"diff_hunk":"@@ -2118,21 +2118,30 @@ function acquia_lift_form_personalize_agent_option_sets_form_alter(&$form, &$for\n /**\n  * Implements hook_form_FORM_ID_alter().\n  *\n- * Alters the status change form so that legacy campaigns whose status is completed\n- * cannot be changed to any other status.\n+ * Alters the status change form so that:\n+ *   1) If the personalization is already started, render the buttons;\n+ *      otherwise link to the review page.\n+ *   2) Legacy campaigns whose status is completed cannot be changed to any other status.\n  */\n function acquia_lift_form_personalize_status_change_form_alter(&$form, &$form_state) {\n   $agent_name = $form['agent_name']['#value'];\n+  $agent = personalize_agent_load($agent_name);\n+  $status = personalize_agent_get_status($agent_name);\n+  // If the personalization is already started, render the buttons; otherwise link to the review page.\n+  if (acquia_lift_is_targeting_agent($agent) && $status === PERSONALIZE_STATUS_NOT_STARTED) {","path":"acquia_lift.module","position":16,"original_position":16,"commit_id":"081a77558cf5255b6d8d183770f8b6a8f8fc5ea1","original_commit_id":"081a77558cf5255b6d8d183770f8b6a8f8fc5ea1","user":{"login":"katbailey","id":58409,"avatar_url":"https://avatars.githubusercontent.com/u/58409?v=3","gravatar_id":"","url":"https://api.github.com/users/katbailey","html_url":"https://github.com/katbailey","followers_url":"https://api.github.com/users/katbailey/followers","following_url":"https://api.github.com/users/katbailey/following{/other_user}","gists_url":"https://api.github.com/users/katbailey/gists{/gist_id}","starred_url":"https://api.github.com/users/katbailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katbailey/subscriptions","organizations_url":"https://api.github.com/users/katbailey/orgs","repos_url":"https://api.github.com/users/katbailey/repos","events_url":"https://api.github.com/users/katbailey/events{/privacy}","received_events_url":"https://api.github.com/users/katbailey/received_events","type":"User","site_admin":false},"body":"Hmm, if we want to make the behavior different, is there some way we can check where the form is being rendered?","created_at":"2015-05-04T22:14:51Z","updated_at":"2015-05-04T22:14:51Z","html_url":"https://github.com/acquia/acquia_lift/pull/171#discussion_r29629345","pull_request_url":"https://api.github.com/repos/acquia/acquia_lift/pulls/171","_links":{"self":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/comments/29629345"},"html":{"href":"https://github.com/acquia/acquia_lift/pull/171#discussion_r29629345"},"pull_request":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/171"}}},"pull_request":{"url":"https://api.github.com/repos/acquia/acquia_lift/pulls/171","id":34503544,"html_url":"https://github.com/acquia/acquia_lift/pull/171","diff_url":"https://github.com/acquia/acquia_lift/pull/171.diff","patch_url":"https://github.com/acquia/acquia_lift/pull/171.patch","issue_url":"https://api.github.com/repos/acquia/acquia_lift/issues/171","number":171,"state":"open","locked":false,"title":"CH-2587 Adding wizard bar logic to acquia_lift module.","user":{"login":"ynx","id":1379691,"avatar_url":"https://avatars.githubusercontent.com/u/1379691?v=3","gravatar_id":"","url":"https://api.github.com/users/ynx","html_url":"https://github.com/ynx","followers_url":"https://api.github.com/users/ynx/followers","following_url":"https://api.github.com/users/ynx/following{/other_user}","gists_url":"https://api.github.com/users/ynx/gists{/gist_id}","starred_url":"https://api.github.com/users/ynx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynx/subscriptions","organizations_url":"https://api.github.com/users/ynx/orgs","repos_url":"https://api.github.com/users/ynx/repos","events_url":"https://api.github.com/users/ynx/events{/privacy}","received_events_url":"https://api.github.com/users/ynx/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-30T21:36:02Z","updated_at":"2015-05-04T22:14:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9077fbc434028812e76f4fb746711f4b2b65c99b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/acquia/acquia_lift/pulls/171/commits","review_comments_url":"https://api.github.com/repos/acquia/acquia_lift/pulls/171/comments","review_comment_url":"https://api.github.com/repos/acquia/acquia_lift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acquia/acquia_lift/issues/171/comments","statuses_url":"https://api.github.com/repos/acquia/acquia_lift/statuses/081a77558cf5255b6d8d183770f8b6a8f8fc5ea1","head":{"label":"acquia:CH-2587","ref":"CH-2587","sha":"081a77558cf5255b6d8d183770f8b6a8f8fc5ea1","user":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":17344049,"name":"acquia_lift","full_name":"acquia/acquia_lift","owner":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/acquia_lift","description":"Mirror of the drupal.org repository for Acquia Lift module","fork":false,"url":"https://api.github.com/repos/acquia/acquia_lift","forks_url":"https://api.github.com/repos/acquia/acquia_lift/forks","keys_url":"https://api.github.com/repos/acquia/acquia_lift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/acquia_lift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/acquia_lift/teams","hooks_url":"https://api.github.com/repos/acquia/acquia_lift/hooks","issue_events_url":"https://api.github.com/repos/acquia/acquia_lift/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/acquia_lift/events","assignees_url":"https://api.github.com/repos/acquia/acquia_lift/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/acquia_lift/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/acquia_lift/tags","blobs_url":"https://api.github.com/repos/acquia/acquia_lift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/acquia_lift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/acquia_lift/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/acquia_lift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/acquia_lift/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/acquia_lift/languages","stargazers_url":"https://api.github.com/repos/acquia/acquia_lift/stargazers","contributors_url":"https://api.github.com/repos/acquia/acquia_lift/contributors","subscribers_url":"https://api.github.com/repos/acquia/acquia_lift/subscribers","subscription_url":"https://api.github.com/repos/acquia/acquia_lift/subscription","commits_url":"https://api.github.com/repos/acquia/acquia_lift/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/acquia_lift/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/acquia_lift/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/acquia_lift/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/acquia_lift/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/acquia_lift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/acquia_lift/merges","archive_url":"https://api.github.com/repos/acquia/acquia_lift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/acquia_lift/downloads","issues_url":"https://api.github.com/repos/acquia/acquia_lift/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/acquia_lift/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/acquia_lift/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/acquia_lift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/acquia_lift/labels{/name}","releases_url":"https://api.github.com/repos/acquia/acquia_lift/releases{/id}","created_at":"2014-03-02T18:42:14Z","updated_at":"2014-08-25T15:09:47Z","pushed_at":"2015-05-04T21:00:58Z","git_url":"git://github.com/acquia/acquia_lift.git","ssh_url":"git@github.com:acquia/acquia_lift.git","clone_url":"https://github.com/acquia/acquia_lift.git","svn_url":"https://github.com/acquia/acquia_lift","homepage":"","size":9525,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"acquia:7.x-2.x","ref":"7.x-2.x","sha":"80b29ef569e31220f62a10d4d3da44c5f3620abf","user":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"repo":{"id":17344049,"name":"acquia_lift","full_name":"acquia/acquia_lift","owner":{"login":"acquia","id":514789,"avatar_url":"https://avatars.githubusercontent.com/u/514789?v=3","gravatar_id":"","url":"https://api.github.com/users/acquia","html_url":"https://github.com/acquia","followers_url":"https://api.github.com/users/acquia/followers","following_url":"https://api.github.com/users/acquia/following{/other_user}","gists_url":"https://api.github.com/users/acquia/gists{/gist_id}","starred_url":"https://api.github.com/users/acquia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acquia/subscriptions","organizations_url":"https://api.github.com/users/acquia/orgs","repos_url":"https://api.github.com/users/acquia/repos","events_url":"https://api.github.com/users/acquia/events{/privacy}","received_events_url":"https://api.github.com/users/acquia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acquia/acquia_lift","description":"Mirror of the drupal.org repository for Acquia Lift module","fork":false,"url":"https://api.github.com/repos/acquia/acquia_lift","forks_url":"https://api.github.com/repos/acquia/acquia_lift/forks","keys_url":"https://api.github.com/repos/acquia/acquia_lift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acquia/acquia_lift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acquia/acquia_lift/teams","hooks_url":"https://api.github.com/repos/acquia/acquia_lift/hooks","issue_events_url":"https://api.github.com/repos/acquia/acquia_lift/issues/events{/number}","events_url":"https://api.github.com/repos/acquia/acquia_lift/events","assignees_url":"https://api.github.com/repos/acquia/acquia_lift/assignees{/user}","branches_url":"https://api.github.com/repos/acquia/acquia_lift/branches{/branch}","tags_url":"https://api.github.com/repos/acquia/acquia_lift/tags","blobs_url":"https://api.github.com/repos/acquia/acquia_lift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acquia/acquia_lift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acquia/acquia_lift/git/refs{/sha}","trees_url":"https://api.github.com/repos/acquia/acquia_lift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acquia/acquia_lift/statuses/{sha}","languages_url":"https://api.github.com/repos/acquia/acquia_lift/languages","stargazers_url":"https://api.github.com/repos/acquia/acquia_lift/stargazers","contributors_url":"https://api.github.com/repos/acquia/acquia_lift/contributors","subscribers_url":"https://api.github.com/repos/acquia/acquia_lift/subscribers","subscription_url":"https://api.github.com/repos/acquia/acquia_lift/subscription","commits_url":"https://api.github.com/repos/acquia/acquia_lift/commits{/sha}","git_commits_url":"https://api.github.com/repos/acquia/acquia_lift/git/commits{/sha}","comments_url":"https://api.github.com/repos/acquia/acquia_lift/comments{/number}","issue_comment_url":"https://api.github.com/repos/acquia/acquia_lift/issues/comments{/number}","contents_url":"https://api.github.com/repos/acquia/acquia_lift/contents/{+path}","compare_url":"https://api.github.com/repos/acquia/acquia_lift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acquia/acquia_lift/merges","archive_url":"https://api.github.com/repos/acquia/acquia_lift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acquia/acquia_lift/downloads","issues_url":"https://api.github.com/repos/acquia/acquia_lift/issues{/number}","pulls_url":"https://api.github.com/repos/acquia/acquia_lift/pulls{/number}","milestones_url":"https://api.github.com/repos/acquia/acquia_lift/milestones{/number}","notifications_url":"https://api.github.com/repos/acquia/acquia_lift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acquia/acquia_lift/labels{/name}","releases_url":"https://api.github.com/repos/acquia/acquia_lift/releases{/id}","created_at":"2014-03-02T18:42:14Z","updated_at":"2014-08-25T15:09:47Z","pushed_at":"2015-05-04T21:00:58Z","git_url":"git://github.com/acquia/acquia_lift.git","ssh_url":"git@github.com:acquia/acquia_lift.git","clone_url":"https://github.com/acquia/acquia_lift.git","svn_url":"https://github.com/acquia/acquia_lift","homepage":"","size":9525,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/171"},"html":{"href":"https://github.com/acquia/acquia_lift/pull/171"},"issue":{"href":"https://api.github.com/repos/acquia/acquia_lift/issues/171"},"comments":{"href":"https://api.github.com/repos/acquia/acquia_lift/issues/171/comments"},"review_comments":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/171/comments"},"review_comment":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acquia/acquia_lift/pulls/171/commits"},"statuses":{"href":"https://api.github.com/repos/acquia/acquia_lift/statuses/081a77558cf5255b6d8d183770f8b6a8f8fc5ea1"}}}}