You are here

simplesamlphp_auth.rules.inc in simpleSAMLphp Authentication 7.3

Same filename and directory in other branches
  1. 7.2 simplesamlphp_auth.rules.inc

Integration with Rules module.

File

simplesamlphp_auth.rules.inc
View source
<?php

/**
 * @file
 * Integration with Rules module.
 */

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

Functions