Hithere!
Maybe I´ve been living in a bubble, but I´ve recently discovered that Rules´ Form Support maybe won´t be ported to D7?
Rules
Rules allows automising a number of tasks and actions when certain events occur on the site, based on conditions and contextual information. Actions may also be delayed, using the Rules Scheduler module in the Rules project.Examples of use cases: Unpublish comments three times flagged as spam. Update related nodes when a node changes. Schedule notifications for users who have not logged in for three weeks.
Drawbacks: Careless configuration may lead to performance problems. Rules Scheduler (included in the Rules project) is tricky to combine with time zone handling. The module Rules Forms Support might not be ported to Drupal 7.
Good to know: –
Drupal 7: Version 1 of Rules will not be available in Drupal 7. #D7CK.
I would like anyone to confirm or hopefully deny this, because I´m using rules and I think that forms support rules, ar one of its best features.
Thanks!
Rosamunda
Comments
Comment #1
jp2020 commentedsubscribing
Comment #2
klausiAt the moment fago and I are too busy to port the form support to Drupal 7. We are also not really satisfied how it works now in D6 and think about something that is more based on entity forms and fields in D7. So most likely Rules 2.0 will not ship with form support, but it could be added later.
However, I'm happy to review patches that go for a straight port to D7 and encourage you to jump in if you depend on this feature.
Comment #3
Rosamunda commentedThanks for you reply!
So, it seems that people that relies on form suppor to handle some part of their rules operations, won´t be able to (for now at least) use Rules...
Comment #4
fagoAs the straight port is not upgradable by design, I think we should put the straight port into a separate project, but only ship Rules with a entity/field based variant in d7.
So if anyone is interested in bringing this to d7 asap, best port it straight and move it into a separate project.
Comment #5
fagoFixing title. http://groups.drupal.org/node/81484 also has some infos about that.
Comment #6
sadeh commentedsubscribing
Comment #7
off commentedI hope for a soon rebirth of rules form!
Comment #8
Jarode commentedHow can I put the output of a php snippet into a field without rules form ?
I'm desperate. :-(
Thanks
Comment #9
jkaine commentedEchoing #7. The form functions in rules for D6 were awesome. So sad to not have them in D7. I'm actually considering rolling back a site already in D7 just to get the rules/form functionality.
Comment #10
Rosamunda commentedI cannot update a site in D6 to D7 because of this. So sad.
Comment #11
jordojuice commentedJust an FYI for those interested, I'm working on a port of this to D7 in a separate project as fago suggested.
Comment #12
jordojuice commentedI've completed much of the port to D7, and administrative forms, enabling form rules, and events and conditions are working properly. However, there is one critical issue with actions. In Rules Forms the $form and $form_state variables are passed by reference, which is necessary to set form values, errors, weights, etc. However, this is not working in Rules 2.
Warning: Parameter 1 to rules_forms_action_adjust_weight() expected to be a reference, value given in FacesExtendable->__call() (line 123 of C:\xampp\htdocs\drupal-7.2\sites\all\modules\rules\includes\faces.inc).I was unable to find any examples of passing arguments by reference in existing Rules modules. How could this be accomplished in a manner that allows the action to manipulate the $form array itself?
Comment #13
fagoYou cannot pass arrays as rules variables around by reference in Rules2. If you need that, best wrap it in a object using the EntityMetadataArrayObject.
Comment #14
jordojuice commentedOkay thanks for the advice fago! I will look into this.
I just found that at http://drupal.org/node/884554 too. Somehow I missed it
Comment #15
jordojuice commentedThe Rules Forms project for D7/Rules 2 is now up separately at http://drupal.org/project/rules_forms. Thanks for the hard work in the original development and maintenance of this! I look forward to seeing what will be added to Rules itself.
Comment #16
klausiCool, thanks a lot! We can post follow-up issues in that issue queue then.
Comment #17
jordojuice commentedSounds good.