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.
Although the daily, weekly, monthly and annually options are OK for the majority of implementations, there are many cases when you are going to need a more granular configuration.
Adding a setting for Custom Time Limit would be nice. A simple way of doing this would simply be using a drop down menu with:
- Minutes
- Hours
- Days
- Weeks
- Months
- Years
Then a number field to type in the limit.
This should count from when the last X nodes was created. If a user has reached the limit then they are blocked, but when the oldest node is older than the time limit, then they can create a new node.
Comment | File | Size | Author |
---|---|---|---|
#4 | node_limitnumber-843632.patch | 2.85 KB | vkareh |
#3 | node_limitnumber-843632.patch | 2.53 KB | vkareh |
Comments
Comment #1
jdwfly CreditAttribution: jdwfly commentedGood idea, I'll see what I can create the next couple of days.
Comment #2
jdwfly CreditAttribution: jdwfly commentedAnybody want to work on this?
Comment #3
vkareh CreditAttribution: vkareh commentedI created a patch that adds two more options: Per minute and Hourly. If using Rules Scheduler, cron has to be set up to run every minute for the Per minute option to make sense.
Please review and let me know.
Comment #4
vkareh CreditAttribution: vkareh commentedRe-made the patch using the Patch contributor guide so that it's easier for the maintainer to patch.