You are here

function ldap_authentication_rules_event_info in Lightweight Directory Access Protocol (LDAP) 7.2

Implements hook_rules_event_info().

File

ldap_authentication/ldap_authentication.rules.inc, line 11
Rule implementations for the LDAP Authentication module.

Code

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.'),
        ],
      ],
    ],
  ];
}