You are here

function fbconnect_rules_event_info in Facebook Connect 7.2

Same name and namespace in other branches
  1. 8.2 fbconnect.rules.inc \fbconnect_rules_event_info()
  2. 6.2 fbconnect.rules.inc \fbconnect_rules_event_info()

Implements hook_rules_event_info().

File

./fbconnect.rules.inc, line 14
Rules integration for the fbconnect module.

Code

function fbconnect_rules_event_info() {
  return array(
    'fbconnect_user_registered' => array(
      'label' => t('User has connected his Facebook Account'),
      'module' => 'fbconnect',
      'variables' => array(
        'account' => array(
          'type' => 'user',
          'label' => t('granted facebook auth user'),
        ),
      ),
    ),
    'fbconnect_user_unregistered' => array(
      'label' => t('User has disconnected his Facebook Account'),
      'module' => 'fbconnect',
      'variables' => array(
        'account' => array(
          'type' => 'user',
          'label' => t('revoked facebook auth user'),
        ),
      ),
    ),
    'fbconnect_user_login' => array(
      'label' => t('User has logged in via Facebook'),
      'module' => 'fbconnect',
      'variables' => array(
        'account' => array(
          'type' => 'user',
          'label' => t('logged in via facebook user'),
        ),
      ),
    ),
  );
}