non security modules update

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 16:32:07 +02:00
parent 6a8d30db08
commit 37fbabab56
466 changed files with 32690 additions and 9652 deletions

View File

@@ -2,7 +2,6 @@
/**
* @file
*
* API Functionality for Honeypot module.
*/
@@ -14,10 +13,10 @@
/**
* Alter the honeypot protections added to a particular form.
*
* @param (array) $options
* @param array $options
* Protections that will be applied to the form. May be empty, or may include
* 'honeypot' and/or 'time_restriction'.
* @param (array) $form
* @param array $form
* The Form API form to which protections will be added.
*/
function hook_honeypot_form_protections_alter(&$options, $form) {
@@ -34,10 +33,10 @@ function hook_honeypot_form_protections_alter(&$options, $form) {
* You can use this hook to track when and how many times certain protected
* forms are displayed to certain users, or for other tracking purposes.
*
* @param (array) $options
* @param array $options
* Protections that were applied to the form. Includes 'honeypot' and/or
* 'time_restriction'.
* @param (array) $form
* @param array $form
* The Form API form to which protections were added.
*/
function hook_honeypot_add_form_protection($options, $form) {
@@ -53,11 +52,11 @@ function hook_honeypot_add_form_protection($options, $form) {
* the user ID (0 if anonymous) of the user that was disallowed from submitting
* the form, and the reason (type) for the rejection of the form submission.
*
* @param (string) $form_id
* @param string $form_id
* Form ID of the form the user was disallowed from submitting.
* @param (int) $uid
* @param int $uid
* 0 for anonymous users, otherwise the user ID of the user.
* @param (string) $type
* @param string $type
* String indicating the reason the submission was blocked. Allowed values:
* - honeypot: If honeypot field was filled in.
* - honeypot_time: If form was completed before the configured time limit.
@@ -76,15 +75,15 @@ function hook_honeypot_reject($form_id, $uid, $type) {
* hook to return additional time (in seconds) to honeypot when it is calculates
* the time limit for a particular form.
*
* @param (int) $honeypot_time_limit
* @param int $honeypot_time_limit
* The current honeypot time limit (in seconds), to which any additions you
* return will be added.
* @param (array) $form_values
* @param array $form_values
* Array of form values (may be empty).
* @param (int) $number
* @param int $number
* Number of times the current user has already fallen into the honeypot trap.
*
* @return (int) $additions
* @return int
* Additional time to add to the honeypot_time_limit, in seconds (integer).
*/
function hook_honeypot_time_limit($honeypot_time_limit, $form_values, $number) {