Allow modules to drupal_alter results of commerce_license_get_order_licenses

Created on 23 June 2015, about 10 years ago
Updated 19 August 2025, 5 days ago

Problem/Motivation

Currently a license is created in commerce_license_commerce_line_item_presave() and then later activated via rule execution with commerce_license_get_order_licenses(). In the first function, the licenses are attached to a product line item at the top level of the order entity.

This does not work for products that use an alternative structure, like Commerce Product Bundle β†’ , which stores them as sub-products.

Proposed resolution

Include drupal_alter() hooks in commerce_license_commerce_line_item_presave() and commerce_license_activate_order_licenses() to allow other modules to support Commerce License integration.

API changes

This change would need to be documented in commerce_license.api.php

I'll have a patch to add that shortly.

✨ Feature request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States kscheirer Vallejo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024