Is there any way to remove the Features dependency from this module? I'm sure it's possible, but I'm not familiar with features. Is this something that wouldn't be too difficult to do?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AndyF’s picture

Title: Features dependency » Remove Features dependency
Category: support » task
Status: Active » Postponed

It shouldn't be particularly difficult. You'd just need to handle creating the field and adding the instance manually. I'm waiting on another issue to commit some tests, and I can take a look at removing the dependency after that (patches welcome of course!).

TomTech’s picture

Status: Postponed » Needs review
FileSize
5.9 KB

Here is a patch to remove the features dependency.

When enabled it will add a field instance to the percent and fixed coupon types. (If either are enabled.)

If neither are enabled, it will add the field when they are enabled.

README.txt updated as well.

AndyF’s picture

Status: Needs review » Fixed

Beautiful, thanks, committed: ea21197.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.