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

duaelfr’s picture

That 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.

Northern_Girl’s picture

Thanks.

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