function user_restrictions_rules_event_info in User restrictions 7
Implements hook_rules_event_info
Whenever a user is denied registration or login this rules event will trigger allowing actions to occur.
Because rules 7.x-2.2 does not support the passing of non-entities as variables in the 'direct input' token selector the requirement is either using rules 7.x-2.3 / dev or applying the patch here: http://drupal.org/node/812058#comment-6536478.
Return value
array
File
- ./
user_restrictions.rules.inc, line 21 - Rules_info for the User restrictions module.
Code
function user_restrictions_rules_event_info() {
return array(
'user_restrictions_denied' => array(
'group' => t('User Restrictions'),
'label' => t('After a user is denied registration.'),
'module' => 'user_restrictions',
'variables' => array(
'type' => array(
'type' => 'text',
'label' => t('Type of User Restrictions match.'),
),
'mask' => array(
'type' => 'text',
'label' => t('Mask blocked by User Restrictions.'),
),
'form_type' => array(
'type' => 'text',
'label' => t('Which form the denial occured on.'),
),
),
),
);
}