Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Hi I'm developing an inline condition for use with commerce discount and if I don't add a configure callback the inline condition isn't added to the rule condition.
Acording the documentation the configure callback is optional: http://cgit.drupalcode.org/inline_conditions/tree/inline_conditions.api....
Any idea?
Thanks!
Comments
Comment #2
jkuma CreditAttribution: jkuma as a volunteer commentedHello sir,
May you forward us your code ? Maybe we mess up something here.
Comment #3
facine CreditAttribution: facine as a volunteer commentedOf course:
mymodule.inline_conditions.inc
mymodule.rules.inc
If I don't add a configure callback the inline condition isn't added to the rule condition, I can add manually the condition to the rule abd check that the condition works fine.
Any idea?
Comment #4
facine CreditAttribution: facine as a volunteer commentedComment #5
facine CreditAttribution: facine as a volunteer commentedBy some mystery, now it works well.
Sorry for the inconvenience!
Comment #6
marcoscanoSeeing the same problem (with the same code)
If there is no configure callback, the value of
$value['condition_settings']
is empty, and this will abort the condition being added to the rule here.Any way to create an inline_condition without config form?
Comment #7
joelpittetWhat version of this module and rules are you using?
If you rebuild rules does it fix?
Comment #8
facine CreditAttribution: facine as a volunteer commentedComment #9
facine CreditAttribution: facine as a volunteer commentedComment #10
facine CreditAttribution: facine as a volunteer commentedHi again, @marcoscano you can solve this issue adding a blank configure callback while this issue is not solved.
Comment #11
marcoscano@joelpittet in my case inline_conditions is 7.x-1.0-alpha5 and rules is 7.x-2.9. Unfortunatelly no, rebuilding rules does not change the behavior..
@facine thanks for the tip, actually I have implemented temporarily a similar workaround, with a configure callback that just returns a dummy form.
Comment #12
joelpittetWhy aren't you using alpha7 or -dev? Can you upgrade and see if it fixes this?
Comment #13
marcoscanoSorry about that, I can confirm that in alpha7 the problem is solved.
Thanks.