You are here

ldap_authentication.rules.inc in Lightweight Directory Access Protocol (LDAP) 7.2

Rule implementations for the LDAP Authentication module.

File

ldap_authentication/ldap_authentication.rules.inc
View source
<?php

/**
 * @file
 * Rule implementations for the LDAP Authentication module.
 */

/**
 * Implements hook_rules_event_info().
 */
function ldap_authentication_rules_event_info() {
  return [
    'ldap_user_created' => [
      'label' => t('User created from LDAP entry'),
      'module' => 'ldap_authentication',
      'group' => t('User'),
      'variables' => [
        'user' => [
          'type' => 'user',
          'label' => t('The user created.'),
        ],
        'email_template_used' => [
          'type' => 'boolean',
          'label' => t('Whether or not the email template was used to create the user.'),
        ],
      ],
    ],
  ];
}