{"action":"created","comment":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/138559420","pull_request_review_id":62368035,"id":138559420,"diff_hunk":"@@ -218,3 +227,84 @@ function _nexteuropa_ecl_migrate_remove_blocks_header_top() {\n   multisite_drupal_toolbox_remove_block_context('site_wide', 'menu-service-tools');\n   multisite_drupal_toolbox_remove_block_context('site_wide', 'language_selector_site');\n }\n+\n+/**\n+ * Custom function that moves blocks from the nexteuropa_community feature.\n+ */\n+function _nexteuropa_ecl_migrate_move_community_blocks() {\n+  if (module_exists('nexteuropa_communities')) {\n+    multisite_drupal_toolbox_remove_block_context('communities', 'menu-community-menu');\n+    multisite_drupal_toolbox_remove_block_context('communities', 'og-contextual-links');\n+    multisite_drupal_toolbox_remove_block_context('communities', 'community_members-block_1');\n+    multisite_drupal_toolbox_add_block_context('communities', 'menu-community-menu', 'menu', 'menu-community-menu', 'sidebar_first', -10);\n+    multisite_drupal_toolbox_add_block_context('communities', 'og-contextual-links', 'multisite_og_button', 'og-contextual-links', 'sidebar_first', -9);\n+    multisite_drupal_toolbox_add_block_context('communities', 'community_members-block_1', 'views', 'community_members-block_1', 'sidebar_first', -5);\n+  }\n+}\n+\n+/**\n+ * Custom function that moves blocks from the nexteuropa_registration feature.\n+ */\n+function _nexteuropa_ecl_migrate_move_ne_registration_blocks() {\n+  if (module_exists('multisite_registration_core')) {\n+    multisite_drupal_toolbox_remove_block_context('site_wide', 'registration-block');\n+    multisite_drupal_toolbox_remove_block_context('site_wide', 'registration_management-block');\n+    multisite_drupal_toolbox_add_block_context('site_wide', 'registration-block', 'views', 'registration-block', 'sidebar_second', '-7');\n+    multisite_drupal_toolbox_add_block_context('site_wide', 'registration_management-block', 'views', 'registration_management-block', 'sidebar_second', '-6');\n+  }\n+}\n+\n+/**\n+ * Custom function that moves blocks from the taxonomy_browser feature.\n+ */\n+function _nexteuropa_ecl_migrate_move_taxonomy_browser() {\n+  $tags_vocab = taxonomy_vocabulary_machine_name_load('tags');\n+  multisite_drupal_toolbox_remove_block_context('workbench_moderate_all', 'taxonomy_browser-taxonomy_browser_vocabulary_' . $tags_vocab->vid);\n+  multisite_drupal_toolbox_add_block_context('workbench_moderate_all', 'taxonomy_browser-taxonomy_browser_vocabulary_' . $tags_vocab->vid, 'taxonomy_browser', 'taxonomy_browser_vocabulary_' . $tags_vocab->vid, 'sidebar_first', '-10');\n+}\n+\n+/**\n+ * Custom function that moves blocks from the solr facet blocks.\n+ */\n+function _nexteuropa_ecl_migrate_move_facet_blocks() {\n+  if (module_exists('facetapi')) {\n+    multisite_drupal_toolbox_remove_block_context('site_wide', 'odQxTWyhGW1WU7Sl00ISAnQ21BCdJG3A');\n+    multisite_drupal_toolbox_remove_block_context('site_wide', 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu');\n+    multisite_drupal_toolbox_remove_block_context('site_wide', 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j');\n+    multisite_drupal_toolbox_remove_block_context('site_wide', '8o8kdtP8CKjahDIu1Wy5LGxnDHg3ZYnT');\n+    multisite_drupal_toolbox_add_block_context('search', 'odQxTWyhGW1WU7Sl00ISAnQ21BCdJG3A', 'facetapi', 'odQxTWyhGW1WU7Sl00ISAnQ21BCdJG3A', 'sidebar_first', '-17');\n+    multisite_drupal_toolbox_add_block_context('search', 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', 'facetapi', 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', 'sidebar_first', '-16');\n+    multisite_drupal_toolbox_add_block_context('search', 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', 'facetapi', 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', 'sidebar_first', '-15');\n+    multisite_drupal_toolbox_add_block_context('search', '8o8kdtP8CKjahDIu1Wy5LGxnDHg3ZYnT', 'facetapi', '8o8kdtP8CKjahDIu1Wy5LGxnDHg3ZYnT', 'sidebar_first', '-14');\n+  }\n+}\n+/**\n+ * Custom function to disable ec_resp blocks.\n+ *\n+ * Those were added on ec_resp in _cce_basic_config_post_install_default_blocks.\n+ */\n+function _nexteuropa_ecl_migrate_remove_ec_resp_blocks() {\n+\n+  db_update('block')","path":"profiles/common/modules/custom/nexteuropa_ecl_migrate/nexteuropa_ecl_migrate.module","position":81,"original_position":89,"commit_id":"002e9e013581ddb1b37a28f695d89ff23f7445a2","original_commit_id":"c6674532b7a42dc2ec9f26cc56e119df0b4aafb0","user":{"login":"Fefaine","id":9037645,"avatar_url":"https://avatars2.githubusercontent.com/u/9037645?v=4","gravatar_id":"","url":"https://api.github.com/users/Fefaine","html_url":"https://github.com/Fefaine","followers_url":"https://api.github.com/users/Fefaine/followers","following_url":"https://api.github.com/users/Fefaine/following{/other_user}","gists_url":"https://api.github.com/users/Fefaine/gists{/gist_id}","starred_url":"https://api.github.com/users/Fefaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fefaine/subscriptions","organizations_url":"https://api.github.com/users/Fefaine/orgs","repos_url":"https://api.github.com/users/Fefaine/repos","events_url":"https://api.github.com/users/Fefaine/events{/privacy}","received_events_url":"https://api.github.com/users/Fefaine/received_events","type":"User","site_admin":false},"body":"No because we need to disable it only for ec_resp, we don't want to disable it in other themes.","created_at":"2017-09-13T08:49:06Z","updated_at":"2017-09-13T08:49:06Z","html_url":"https://github.com/ec-europa/platform-dev/pull/1515#discussion_r138559420","pull_request_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments/138559420"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/1515#discussion_r138559420"},"pull_request":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515"}},"in_reply_to_id":138383104},"pull_request":{"url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515","id":134682124,"html_url":"https://github.com/ec-europa/platform-dev/pull/1515","diff_url":"https://github.com/ec-europa/platform-dev/pull/1515.diff","patch_url":"https://github.com/ec-europa/platform-dev/pull/1515.patch","issue_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/1515","number":1515,"state":"open","locked":false,"title":"Nept 1251 : Feature blocks placing in new theme for the optional feature","user":{"login":"Fefaine","id":9037645,"avatar_url":"https://avatars2.githubusercontent.com/u/9037645?v=4","gravatar_id":"","url":"https://api.github.com/users/Fefaine","html_url":"https://github.com/Fefaine","followers_url":"https://api.github.com/users/Fefaine/followers","following_url":"https://api.github.com/users/Fefaine/following{/other_user}","gists_url":"https://api.github.com/users/Fefaine/gists{/gist_id}","starred_url":"https://api.github.com/users/Fefaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fefaine/subscriptions","organizations_url":"https://api.github.com/users/Fefaine/orgs","repos_url":"https://api.github.com/users/Fefaine/repos","events_url":"https://api.github.com/users/Fefaine/events{/privacy}","received_events_url":"https://api.github.com/users/Fefaine/received_events","type":"User","site_admin":false},"body":"## NEPT-1251\r\n\r\n### Description\r\n\r\nMove the blocks from old region to new ones.\r\nIndicate which features are deprecated in their README.md\r\nRemove duplication of context save instructions.\r\n\r\n### Change log\r\n\r\n- Changed: Moved community blocks, regristration blocks.\r\n- Deprecated: multisite_twitterblock\r\n- Removed: Duplicate blocks placing from in cce_basic_config\r\n\r\n### Commands\r\n\r\n```sh\r\nno command\r\n```\r\n\r\n","created_at":"2017-08-08T14:57:11Z","updated_at":"2017-09-13T08:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91514019ee42303be20b2fff43ba958be316891b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515/commits","review_comments_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515/comments","review_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/1515/comments","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/002e9e013581ddb1b37a28f695d89ff23f7445a2","head":{"label":"ec-europa:nept-1251","ref":"nept-1251","sha":"002e9e013581ddb1b37a28f695d89ff23f7445a2","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2017-08-28T05:54:42Z","pushed_at":"2017-09-13T08:44:01Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":49699,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":54,"forks":32,"open_issues":54,"watchers":33,"default_branch":"master"}},"base":{"label":"ec-europa:master","ref":"master","sha":"2ca3d9aea527cf3e8d99a3bfe38929876ad1dbbb","user":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"repo":{"id":41666809,"name":"platform-dev","full_name":"ec-europa/platform-dev","owner":{"login":"ec-europa","id":10885565,"avatar_url":"https://avatars1.githubusercontent.com/u/10885565?v=4","gravatar_id":"","url":"https://api.github.com/users/ec-europa","html_url":"https://github.com/ec-europa","followers_url":"https://api.github.com/users/ec-europa/followers","following_url":"https://api.github.com/users/ec-europa/following{/other_user}","gists_url":"https://api.github.com/users/ec-europa/gists{/gist_id}","starred_url":"https://api.github.com/users/ec-europa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ec-europa/subscriptions","organizations_url":"https://api.github.com/users/ec-europa/orgs","repos_url":"https://api.github.com/users/ec-europa/repos","events_url":"https://api.github.com/users/ec-europa/events{/privacy}","received_events_url":"https://api.github.com/users/ec-europa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ec-europa/platform-dev","description":"NextEuropa platform","fork":false,"url":"https://api.github.com/repos/ec-europa/platform-dev","forks_url":"https://api.github.com/repos/ec-europa/platform-dev/forks","keys_url":"https://api.github.com/repos/ec-europa/platform-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ec-europa/platform-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ec-europa/platform-dev/teams","hooks_url":"https://api.github.com/repos/ec-europa/platform-dev/hooks","issue_events_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/events{/number}","events_url":"https://api.github.com/repos/ec-europa/platform-dev/events","assignees_url":"https://api.github.com/repos/ec-europa/platform-dev/assignees{/user}","branches_url":"https://api.github.com/repos/ec-europa/platform-dev/branches{/branch}","tags_url":"https://api.github.com/repos/ec-europa/platform-dev/tags","blobs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ec-europa/platform-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ec-europa/platform-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/ec-europa/platform-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ec-europa/platform-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/ec-europa/platform-dev/languages","stargazers_url":"https://api.github.com/repos/ec-europa/platform-dev/stargazers","contributors_url":"https://api.github.com/repos/ec-europa/platform-dev/contributors","subscribers_url":"https://api.github.com/repos/ec-europa/platform-dev/subscribers","subscription_url":"https://api.github.com/repos/ec-europa/platform-dev/subscription","commits_url":"https://api.github.com/repos/ec-europa/platform-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/ec-europa/platform-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/ec-europa/platform-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/ec-europa/platform-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/ec-europa/platform-dev/contents/{+path}","compare_url":"https://api.github.com/repos/ec-europa/platform-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ec-europa/platform-dev/merges","archive_url":"https://api.github.com/repos/ec-europa/platform-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ec-europa/platform-dev/downloads","issues_url":"https://api.github.com/repos/ec-europa/platform-dev/issues{/number}","pulls_url":"https://api.github.com/repos/ec-europa/platform-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/ec-europa/platform-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/ec-europa/platform-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ec-europa/platform-dev/labels{/name}","releases_url":"https://api.github.com/repos/ec-europa/platform-dev/releases{/id}","deployments_url":"https://api.github.com/repos/ec-europa/platform-dev/deployments","created_at":"2015-08-31T09:16:12Z","updated_at":"2017-08-28T05:54:42Z","pushed_at":"2017-09-13T08:44:01Z","git_url":"git://github.com/ec-europa/platform-dev.git","ssh_url":"git@github.com:ec-europa/platform-dev.git","clone_url":"https://github.com/ec-europa/platform-dev.git","svn_url":"https://github.com/ec-europa/platform-dev","homepage":null,"size":49699,"stargazers_count":33,"watchers_count":33,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":54,"forks":32,"open_issues":54,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515"},"html":{"href":"https://github.com/ec-europa/platform-dev/pull/1515"},"issue":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/1515"},"comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/issues/1515/comments"},"review_comments":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515/comments"},"review_comment":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ec-europa/platform-dev/pulls/1515/commits"},"statuses":{"href":"https://api.github.com/repos/ec-europa/platform-dev/statuses/002e9e013581ddb1b37a28f695d89ff23f7445a2"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Fefaine"}}