Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

iDigit Gov consent

No security coverage Under active development

iDigit Gov consent shows a consent banner with equal-weight Accept all and Reject optional cookies buttons, plus Customize. Scripts you register (HTTPS URLs, per category) are inserted only after their category is granted; rejecting never loads them.

It is a community contribution by iDigit. It is not an official DGA product and is not endorsed by DGA. It is not legal advice and makes no claim of compliance with any law.

What it does

  • Banner with Accept all, Reject optional, and a Customize dialog.
  • Registered scripts load only after their category is granted.
  • The choice is stored in a first-party cookie (idg_consent, 180 days by default); nothing is stored on the server.
  • Bump the consent version to ask everyone again; a small JavaScript API is provided.
  • Arabic translation included.

Limits
Without JavaScript, the banner is hidden and no registered script loads. Rejecting cannot delete cookies that third parties already set: remove or block those scripts yourself.

Related projects
Drupal.org has several mature consent projects, for example Klaro, COOKiES and EU Cookie Compliance. This module is deliberately small and has no external library; choose the one that fits your requirements.

Requirements
Drupal core ^11.3 (tested on 11.4, PHP 8.4). No other dependencies.

Install
composer require 'drupal/idigit_gov_consent:^1.0@alpha', then enable the module and configure categories and scripts.

Ask your assistant about iDigit Gov consent

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2026
Latest release
2 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 11 Nov 4, 2026
1.0.x-dev Dev 11 Nov 4, 2026