Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

LawwwingInsert

No security coverage Maintenance fixes only

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).
Drupal 10–11

Ask your assistant about LawwwingInsert

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

Release Timeline

Releases

Version Type Core PHP 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