You are here

function fb_rules_rules_condition_info in Drupal for Facebook 7.3

Implementation of hook_rules_condition_info().

File

contrib/fb_rules.rules.inc, line 87
fb_rules.rules.inc Rules integration for the Drupal for Facebook module.

Code

function fb_rules_rules_condition_info() {
  $defaults = array(
    'parameter' => array(),
    'group' => t('Facebook'),
  );
  return array(
    'fb_is_tab' => array(
      'label' => t('Viewing Facebook page tab'),
      'base' => 'fb_is_tab',
    ) + $defaults,
    'fb_is_page_liked' => array(
      'label' => t('Viewing Facebook page tab and user has liked page'),
      'base' => 'fb_is_page_liked',
    ) + $defaults,
    'fb_facebook_user' => array(
      'label' => t('User is currently connected to Facebook'),
      'base' => 'fb_facebook_user',
    ) + $defaults,
  );
}