Hey guys,

I've only been using Drupal for a few months, so go easy on me :)

I'm using the Activity module, and I would like to make a custom action post whenever a listing has been upgraded from free to paid. The difference between free/paid is with $node->expiration being greater or lesser than the current time();

Usually the listing is usually created as 'free', so I would like that if a 'listing' node is updated and if $node->expiration is greater than the current time(), then it post ' [title-raw] has upgraded this listing' in the Activity page/block.

Also, if it's actually possible, I'd like this to run only once with the first time the above statement is true. Otherwise it would post the upgrade string every time it updated, which is not the case.

Any suggestions? I can upload the current listing module if that helps. Thanks in advance!

Comments

_shy’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D6 reached its EOL back in February 2016, and there is no active release for D6 for this module anymore.
Development or support is not planned for D6. All D6-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.