Skip to content

Commit

Permalink
[#801] Followup cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericras committed Oct 23, 2024
1 parent af90bbf commit 453b069
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
2 changes: 1 addition & 1 deletion config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/sync/user.role.coder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -88,4 +89,3 @@ permissions:
- 'use text format webform_email'
- 'view salesforce mapping'
- 'view the administration theme'
- 'access unl webform options'
40 changes: 0 additions & 40 deletions web/themes/custom/unl_five_herbie/unl_five_herbie.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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;
// }
// }
}

/*
Expand Down Expand Up @@ -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;
// }

0 comments on commit 453b069

Please sign in to comment.