From 453b0698f5285a828b717e77114ca0e8026b1d01 Mon Sep 17 00:00:00 2001 From: Eric Rasmussen Date: Wed, 23 Oct 2024 11:34:04 -0500 Subject: [PATCH] [#801] Followup cleanup --- config/sync/core.extension.yml | 2 +- config/sync/user.role.coder.yml | 2 +- .../unl_five_herbie/unl_five_herbie.theme | 40 ------------------- 3 files changed, 2 insertions(+), 42 deletions(-) diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index ac9c1b68..7451e77d 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -124,8 +124,8 @@ module: metatag: 0 metatag_open_graph: 0 metatag_twitter_cards: 0 - moderated_content_bulk_publish: 0 metatag_verification: 0 + moderated_content_bulk_publish: 0 mysql: 0 node: 0 oembed_providers: 0 diff --git a/config/sync/user.role.coder.yml b/config/sync/user.role.coder.yml index b0358001..01a0673e 100644 --- a/config/sync/user.role.coder.yml +++ b/config/sync/user.role.coder.yml @@ -44,6 +44,7 @@ permissions: - 'access protected page password screen' - 'access site reports' - 'access taxonomy overview' + - 'access unl webform options' - 'add JS snippets for google analytics' - 'administer content types' - 'administer css assets injector' @@ -88,4 +89,3 @@ permissions: - 'use text format webform_email' - 'view salesforce mapping' - 'view the administration theme' - - 'access unl webform options' diff --git a/web/themes/custom/unl_five_herbie/unl_five_herbie.theme b/web/themes/custom/unl_five_herbie/unl_five_herbie.theme index efbc8194..9adb3bea 100644 --- a/web/themes/custom/unl_five_herbie/unl_five_herbie.theme +++ b/web/themes/custom/unl_five_herbie/unl_five_herbie.theme @@ -66,14 +66,6 @@ function unl_five_herbie_preprocess_region(&$variables) { $variables['group_homepage'] = true; } } - - // $group = _unl_five_get_current_group(); - - // if ($group) { - // if($variables['elements']['#id'] == 'unl_five_herbie_contactinfo') { - // $variables['hide_block'] = TRUE; - // } - // } } /* @@ -709,35 +701,3 @@ function unl_five_herbie_preprocess_image(&$variables) { $variables['attributes']['src'] = $file_url_generator->generateAbsoluteString($variables['uri']); } } - -/** - * Get the current Group. - * - * @return Drupal\group\Entity\Group - */ -// function _unl_five_get_current_group() { -// $moduleHandler = \Drupal::service('module_handler'); -// if (!$moduleHandler->moduleExists('group')) { -// return NULL; -// } - -// // If we're on a Group entity page. -// $group_route_context = \Drupal::service('group.group_route_context'); -// $contexts = $group_route_context->getRuntimeContexts(['group']); -// $group = $contexts['group']->getContextValue(); - -// // If we're on a Node entity page. -// $node = \Drupal::request()->attributes->get('node'); -// if ($node) { -// if (is_numeric($node)) { -// $node = Node::load($node); -// } -// $group_content_array = GroupRelationship::loadByEntity($node); -// foreach ($group_content_array as $group_content) { -// $group = $group_content->getGroup(); -// } -// } - -// return $group; -// } -