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). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Usage Milestone: Time Field for Drupal 8+ Module time_field crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

LawwwingInsert

No security coverage Drupal 10–11
View on drupal.org

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).

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
3
Tracked since
Oct 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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