Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Group Block

Security covered Under active development 41 sites

This module allows you to assign block content specifically to groups created with the Group module. This means you can have different blocks displayed for different groups.

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();
}
Drupal 8–10 · not 11

Ask your assistant about Group Block

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • Group
  • block Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Jul 2023
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.x-dev Dev 9–11 Mar 4, 2026
2.x-dev Dev 9–11 Mar 4, 2026
3.0.0-alpha2 Pre-release 9–10 Jan 10, 2024
2.0.0-alpha2 Pre-release 9–10 Jan 10, 2024
2.0.0-alpha1 Pre-release 9–10 Dec 16, 2023
3.0.0-alpha1 Pre-release 9–10 Dec 7, 2023
1.0.2 Stable 8–10 Jul 10, 2023