Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Consent Support

10 sites Security covered Drupal 9–11
View on drupal.org

This module helps content editors manage consent for embedded content with minimal effort. It replaces content that requires consent with a "no-consent message" and can link to a preference center. The module supports various content types like blocks, media, and paragraphs, with configurable options for how content is processed and displayed based on user consent.

Synopsis

This module is a 'spin-off' from CookiePro Plus to support content blocking in a way that requires as minimal impact and/or effort for content editors.

The initial goal of this module was twofold:

  1. Making the solution as less intrusive and foolproof as possible for content editors.
  2. Replacing blocked content with a 'no-consent message', or adding in case of scripts, which also contains link to open the CookiePro preferences center.

As CookiePro defines ways on how to handle iframes and scripts that are part of the content and cannot be handled by their Auto-Blocking™ mechanism. This these solutions are implemented in a generic way, which can be expanded upon to handle specific entity types or fields.

Features

Overtime, the module expanded with additions like:

  • 'No-consent messages' using templates.
  • A few submodules to cover common use cases.
  • In case of entities to be processed (Media, Paragraphs):
    • Default processing behavior is stored on the entity type.
    • Override at entity level is possible.
    • Permissions are present to allow or deny override at entity level to the desired User roles.
  • Consent Context (config): affects template suggestions for the 'no-consent message' template. Which Consent Context is applied depends on the case.
    In case of entities, it can be configured and overriden at entity level.
  • Provider (config): Similar to oEmbed providers, to tie provider domain(s) to a cookie category using regex. This is used to enforce the proper consent category during processing.
  • Plugin based system to add support for any Entity type.
  • Processor service to the actual work.
  • Processing takes IP-bypass and pause modus of CookiePro Plus into account.

The included submodules currently cover support for:

See the main module README for all details and how to extend for your own use-cases.

Consent Contex and Provider management
Consent Support config on Media type and Media entity
Consent Support config on Paragraph type, Paragraph entity and Video Embed Field (no config)
'No-consent message' display and unblocking
  • The YouTube video in the Video Embed field has been forced to category 'targeting' due to the Provider 'YouTube', and Consent Context 'video' (hard-coded).
  • The script part of Tweet embed code has also been forced to category 'targeting' because 'Force category by provider' is enabled at the Paragraph type in combination with the Provider 'Twitter', even though the configuration in the Paragraph is set to 'social media'.
    The Consent Context 'Script' has been set and applied, providing a 'no-consent message' with different text and icon.
  • Upon saving consent for the 'targeting' category in the CookiePro preferences center, the iframe's original source is restored and the Twitter script executed.
  • Each consent category can be separately accepted and its content unblocked.

Requirements

Currently, the module requires:

Roadmap

  • As many cookie banner/consent tools use similar approaches to 'unblock' iframes and scripts, the goal for version 2 is to reverse dependencies with CookiePro Plus and define a 'processing' plugin for cookie banner/consent tools modules to implement.
  • Cookie Content Blocker: Different approach on how to (configure) content blocking and how to expose this to editor, with different cookie banner in mind.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.12 Stable 9–11 Feb 22, 2025