This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
montpellier/drupal/simplesamlphp_auth/simplesamlphp_auth.rules.inc

35 lines
850 B
PHP

<?php
/**
* @file
* Integration with Rules module.
*/
/**
* Implementation of hook_rules_event_info().
* @ingroup rules
*/
function simplesamlphp_auth_rules_event_info() {
$defaults = array(
'group' => t('User'),
'module' => 'simplesamlphp_auth',
);
return array(
'simplesamlphp_auth_rules_event_register' => $defaults + array(
'label' => t('After registering a new user account via simpleSAMLphp'),
'group' => t('User'),
'variables' => array(
'user' => array('type' => 'user', 'label' => t('Logged in user')),
),
),
'simplesamlphp_auth_rules_event_login' => $defaults + array(
'label' => t('User has logged in via simpleSAMLphp'),
'group' => t('User'),
'variables' => array(
'user' => array('type' => 'user', 'label' => t('User')),
),
),
);
}