This module is designed to associate group specific block content with a group when using the Group module.

Requirements

Versions

  • Group block 1.0 is based on Group 1.6
  • Group block 2.0 is based on Group 2.2
  • Group block 3.0 is based on Group 3.2

Migration from patch

There is no easy way to migrate from this patch to this module as everyone's group content IDs will be different but the following code will hopefully point you in the right direction.

$old_basic_block = 'group_content_type_480bfd4b64e96';
$new_basic_block = 'group_content_type_cd92bde0bdc52';
$group_content_storage = Drupal::entityTypeManager()->getStorage('group_content');
$group_block_old_basic = $group_content_storage->loadByProperties([
 'type' => $old_basic_block
]);
foreach ($group_block_old_basic as $groupblock) {
 $new_group_content = $group_content_storage->create([
 'type' => $new_basic_block,
 'langcode' => 'en',
 'gid' => $groupblock->gid->target_id,
 'entity_id' => $groupblock->entity_id->target_id
 ]);
 $new_group_content->save();
 $groupblock->delete();
}
Supporting organizations:
Sponsoring the development

Project information

Releases

3.0.1 Stable release covered by the Drupal Security Team released 28 October 2026
Works with Drupal: ^9 || ^10 || ^11
Install:

Development version: 3.x-dev updated 28 Oct 2026 at 21:14 UTC

2.0.0-alpha2 released 10 January 2024
Works with Drupal: ^9 || ^10
Install:

Development version: 2.x-dev updated 4 Mar 2026 at 21:51 UTC

1.0.2 Stable release covered by the Drupal Security Team released 10 July 2023
Works with Drupal: ^8.8 || ^9 || ^10

d10 for group 1.x

Install: