You are here

function email_confirm_rules_event_info in Email Change Confirmation 6

Same name and namespace in other branches
  1. 7 email_confirm.rules.inc \email_confirm_rules_event_info()

Implementation of hook_rules_event_info().

File

./email_confirm.rules.inc, line 12
Functions for integrating the Rules module with Email Change Confirmation.

Code

function email_confirm_rules_event_info() {
  return array(
    'email_confirm_email_change_request' => array(
      'label' => t('User has requested email change'),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User object of the user requesting email change'),
        ),
        'old_email' => array(
          'type' => 'string',
          'label' => t('Current email address of the user requesting email change'),
        ),
        'new_email' => array(
          'type' => 'string',
          'label' => t('New email address of the user requesting email change'),
        ),
      ),
      'module' => 'Email Change Confirmation',
    ),
    'email_confirm_email_change_confirmation' => array(
      'label' => t('User has confirmed email change'),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User object of the user confirming email change'),
        ),
        'old_email' => array(
          'type' => 'string',
          'label' => t('Current email address of the user confirming email change'),
        ),
        'new_email' => array(
          'type' => 'string',
          'label' => t('New email address of the user confirming email change'),
        ),
      ),
      'module' => 'Email Change Confirmation',
    ),
  );
}