Would it be possible to integrate the Time Track Module with the Rules module? It would be nice to be able to have the time track module start tracking time based upon a set trigger. It would also be nice to be able to specify actions to occur when a time tracking is started or stopped.
If I enable form events for the time track form, then I do see three possible triggers to use in rules:
1)Time track form is being built
2)Time track form is being validated
3)Time track form is submitted
This is good, but I can't seem to get any actions to occur when I specify one of those as the trigger. It seems like the rules module doesn't ever recognize the time track form being built, validated, or submitted. Is this a problem with Rules, with Time Track, or with me? It is totally possible that I am just messing something up. Can anyone confirm for me if the can get the Rules module to perform any action based on one of the three triggers for the time track form? If I could get that much working it would be a big step, but it would also be nice to have a full integration with Rules.
Comments
Comment #1
matt.robinson1 commentedI tested a little more and found that the Rules module can in fact recognize and perform an action when the time track form is built. This only happens though when I'm using the standard time track View that is part of the content of the page (for example if you go to node/nid/time-track). It does not work when using just the time track blocks. I'm not sure what is different between having a time track form in a block as opposed to in the content of the page.
That said, I still can not get Rules to recognize the form being validated or submitted no matter what I try. I think that is because the form does not require any values to be entered, validated, or submitted.
So how do I perform an action when the "Stop" button is clicked, if that is not classified as submitting the form?