Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module simplifies the integration of the Lawwwing cookie script into your Drupal website. It automatically adds the script to your site's head section after you configure your Lawwwing Script ID and optional access controls.

Important

This module was developed before the
official Lawwwing Drupal module existed.
We strongly recommend using the official module instead of this one, as it is actively maintained and supported by the Lawwwing team.

The Lawwwing module for Drupal simplifies the integration of the Lawwwing cookie script into your website.
It automatically adds the script to the <head> section of your site by configuring a few settings, including
the Lawwwing Script ID and optional access controls for private Sections → admin theme or specific user roles.
This module provides a user-friendly way to manage the Lawwwing service within your Drupal site.

Requirements

  • Drupal 10.0 or higher
  • PHP 8.1 or greater
  • A valid Lawwwing Script ID provided by the
    Lawwwing service

Installation

  1. Download the module via Composer:
    composer require drupal/lawwwing
  2. Enable the module using Drush:
    drush en lawwwing -y
  3. Configure the module settings by navigating to
    Admin > Configuration > Web Services > Lawwwing Settings.

Configuration

After enabling the module, configure it to integrate the Lawwwing script:

  1. Go to Admin > Configuration > Web Services > Lawwwing Settings.
  2. Enter the Lawwwing Script ID provided by the Lawwwing service.
  3. (Optional) Enable the Private Section option to restrict the script to private areas of your site.
  4. (Optional) Specify Permitted Roles to limit which user roles can trigger the script insertion.
  5. Save the configuration.

Usage

Once configured, the Lawwwing module automatically inserts the Lawwwing cookie script into the <head> section of your website. No additional steps are required to enable the script.

To verify it’s working:

  1. Check the page source of your site to confirm the Lawwwing script is present in the <head> section.
  2. Ensure the script functions as expected based on your Lawwwing service setup.

Troubleshooting

  • Script not appearing in Verify that the Lawwwing Script ID is correctly entered in the configuration settings.
  • Script not loading in Private Sections → admin theme: Ensure the "Private Section" option is enabled if you want the script to load in restricted areas.
  • Role-Based issues: Confirm that the appropriate user roles are selected in the configuration if the script is restricted to specific roles.
  • General issues: Ensure Drupal’s cache is cleared after enabling or configuring the module (drush cache:rebuild).

Activity

Total releases
3
First release
Oct 2025
Latest release
1 week ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jul 10, 2026
1.0.0 Stable Oct 3, 2025
1.x-dev Dev Oct 2, 2025