Hello,

I'm trying to setup a mini module that will automatically remove users from an event after 24 hours. How would I go about doing this?

Thank you!

Comments

dww’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know what you mean. Can you please be more specific?

What does "remove users" mean? Cancel their signups?

"after 24 hours" from what? they can only signup for a 24 hour period and then they have to re-signup?

Maybe if you described the use case, it'd make more sense what functionality you're trying to build...

Grimlock’s picture

Title: Automatily remove users after a certain amount of time » Automatily cancel signups after a certain amount of time

Oops sorry here's my use case.

Description: Cancel members signup after X amount of hours.

1. I have folks sign up for events which are coupled with a webform that they should fill out with 24 hours.

2. If a user doesn't fill in the form by the 24 hour deadline I would like to automatically boot them out of the signup (cancel their signup) so that another user can then signup for the webform.

Sorry for being so no descriptive, and thanks for the quick reply!

Grimlock’s picture

Title: Automatily cancel signups after a certain amount of time » Automatically cancel signups after a certain amount of time

Updating spelling error, sorry I've been working too long :)

dww’s picture

Status: Postponed (maintainer needs more info) » Fixed

{signup_log} includes a 'signup_time' field for when the user signed up.
signup_cancel_signup($uid, $nid) is your friend.

That should be all the info you need to write your own little custom module to do this.

Good luck,
-Derek

p.s. no, I have no interest in adding a feature like this to the signup module itself. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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