Closed (fixed)
Project:
Examples for Developers
Component:
Action Example
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Oct 2010 at 08:03 UTC
Updated:
28 Dec 2010 at 06:18 UTC
Jump to comment: Most recent file
There are no any action defined in the trigger module. How do we do with that one? do we create an actions example, or do we put actions in the trigger module? it should include simple actions, and advanced actions (configurable).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | examples.actions_example_929324_06.patch | 26.81 KB | rfay |
| #4 | action_example.patch | 15.89 KB | ilo |
Comments
Comment #1
rfayI guess I'm in favor of a separate module. That way people can just look at one line of code. In that case we should use core-provided triggers only for the example.
Comment #2
ilo commenteday ay sir! I'm going to take the triggers example as template in this case.
Comment #3
ilo commentedfirst blocker: #929548: hook_action_info_alter() expected behaviour
Comment #4
ilo commentedOk, a very first attempt, I need someone to review and provide the basic goals of the module. I'm not sure if the unblock action is a good example, the other two are fine for me if I was in position of learn how do actions work.
Descriptions are written more carefully than ever, to avoid the hard work of the review. The testcase is empty, as long as I'm not sure if these are the 'good' example actions it makes no sense to test them yet.
Anyway, the hook_action_info_alter() will not work, we will have to wait for the blocker in #3 to see how do we deal with it.
Comment #5
ilo commentedI've found 5 or 6 coder issues (identation with tabs) in this module (after submitting the patch), so probably the trigger_example also fails the same way (I used as the template).
Comment #6
rfayI'm doing a little cleanup on this and adding tests.
Comment #7
rfayAdded tests.
Removed hook_action_info_alter(), as it doesn't seem to actually work.
Bundles in a cheater change to trigger_example.test (some core changes went in that made it easy to improve).
Some minor comment changes.
Comment #8
rfayCommitted: http://drupal.org/cvs?commit=463748
Thanks, ilo!
Comment #10
ilo commentedThanks for pushing this one, rfay!