Working on a migration into a site that will now have achievements, I'd like to be able to pass in, for example, $node->created when calling achievements_unlock(). This way, users retroactively earn achievements instead of the UI showing all achievements earned on the date of the migration.

Comments

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

Here's a patch that adds a timestamp parameter.

morbus iff’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

morbus iff’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

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