http://api.drupal.org/api/function/flood_is_allowed
Can we change the function description text to make it more gender neutral from:

Drupal 4.6, 4.7, 5

Check if the current visitor (hostname/IP) is allowed to proceed with the specified event. The user is allowed to proceed if he did not trigger the specified event more than $threshold times per hour.

to:

Check if the current visitor (hostname/IP) is allowed to proceed with the specified event. The user is allowed to proceed if they did not trigger the specified event more than $threshold times per hour.

Drupal 6

The user is allowed to proceed if he did not trigger the specified event more than $threshold times per hour.

to:

The user is allowed to proceed if they did not trigger the specified event more than $threshold times per hour.

Drupal 7

The user is allowed to proceed if he did not trigger the specified event more than $threshold times in the specified time window.

to:

The user is allowed to proceed if they did not trigger the specified event more than $threshold times in the specified time window.

thanks!

CommentFileSizeAuthor
#2 698978.patch1.79 KBjhodgdon

Comments

jhodgdon’s picture

Title: Documentation problem with flood_is_allowed » flood_is_allowed doc should be gender-neutral
Version: 6.x-dev » 7.x-dev

"they" is plural, so please do not replace "he" with "they", as it is grammatically incorrect.

Also, the patching should start with Drupal 7 and then go back to older versions.

jhodgdon’s picture

Status: Active » Needs review
StatusFileSize
new1.79 KB

Here's a patch for D7 that fixes up the doc for this function, in the process making it gender neutral.

jbrown’s picture

I think 'action' is better than 'event'.

jhodgdon’s picture

I was thinking about changing that too, but I left it as "event" since that is what it was before.

Also, the word "action" is used by actions.inc and trigger.module for something that is unrelated to what this function covers. I think maybe we need a word that is not "action" to avoid confusion.

grendzy’s picture

Status: Needs review » Reviewed & tested by the community

looks good to me.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

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