You are here

function simplesamlphp_auth_rules_event_info in simpleSAMLphp Authentication 7.2

Same name and namespace in other branches
  1. 7.3 simplesamlphp_auth.rules.inc \simplesamlphp_auth_rules_event_info()

Implements hook_rules_event_info().

File

./simplesamlphp_auth.rules.inc, line 12
Integration with Rules module.

Code

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