Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I use node_limit to limit the number of photos each member can upload. Would it be possible to add a "device" to erase the oldest photo when a user reaches his limit. It would represent an easy way for users to "refresh" their online portfolio without have to first erase a photo to "lower" their photo limit.
Rules could be the way I guess. Any suggestions?
Thanks.
Comments
Comment #1
DuaelFrThat module does not propose this behavior.
If we had a Rules integration, it could eventually be doable. As the Rule would be called after the access check, you should have to delete the node then redirect to the node/add/[type] page to force the access to be re-checked.
The problem is that we don't have this integration.
Comment #2
Northern_Girl CreditAttribution: Northern_Girl commentedThanks.
Just in case, I have found this : https://www.drupal.org/sandbox/tedbow/1957180
Could it be "recycled" and used for node_limits? It seems to contain the possibility to erase a content when a limit is reached.
NG