Révision 32700c57
Ajouté par Assos Assos il y a environ 5 ans
drupal7/sites/all/modules/ldap/ldap_authentication/ldap_authentication.rules.inc | ||
---|---|---|
1 | 1 |
<?php |
2 |
|
|
2 | 3 |
/** |
3 | 4 |
* @file |
4 | 5 |
* Rule implementations for the LDAP Authentication module. |
... | ... | |
8 | 9 |
* Implements hook_rules_event_info(). |
9 | 10 |
*/ |
10 | 11 |
function ldap_authentication_rules_event_info() { |
11 |
return array(
|
|
12 |
'ldap_user_created' => array(
|
|
12 |
return [
|
|
13 |
'ldap_user_created' => [
|
|
13 | 14 |
'label' => t('User created from LDAP entry'), |
14 | 15 |
'module' => 'ldap_authentication', |
15 | 16 |
'group' => t('User'), |
16 |
'variables' => array(
|
|
17 |
'user' => array(
|
|
17 |
'variables' => [
|
|
18 |
'user' => [
|
|
18 | 19 |
'type' => 'user', |
19 | 20 |
'label' => t('The user created.'), |
20 |
),
|
|
21 |
'email_template_used' => array(
|
|
21 |
],
|
|
22 |
'email_template_used' => [
|
|
22 | 23 |
'type' => 'boolean', |
23 | 24 |
'label' => t('Whether or not the email template was used to create the user.'), |
24 |
),
|
|
25 |
),
|
|
26 |
),
|
|
27 |
);
|
|
25 |
],
|
|
26 |
],
|
|
27 |
],
|
|
28 |
];
|
|
28 | 29 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules