Projet

Général

Profil

Paste
Télécharger (660 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_authentication / ldap_authentication.rules.inc @ 91af538d

1
<?php
2

    
3
/**
4
 * @file
5
 * Rule implementations for the LDAP Authentication module.
6
 */
7

    
8
/**
9
 * Implements hook_rules_event_info().
10
 */
11
function ldap_authentication_rules_event_info() {
12
  return [
13
    'ldap_user_created' => [
14
      'label' => t('User created from LDAP entry'),
15
      'module' => 'ldap_authentication',
16
      'group' => t('User'),
17
      'variables' => [
18
        'user' => [
19
          'type' => 'user',
20
          'label' => t('The user created.'),
21
        ],
22
        'email_template_used' => [
23
          'type' => 'boolean',
24
          'label' => t('Whether or not the email template was used to create the user.'),
25
        ],
26
      ],
27
    ],
28
  ];
29
}