You are here

function mailchimp_lists_rules_condition_info in Mailchimp 7.2

Implements hook_rules_action_info().

File

modules/mailchimp_lists/mailchimp_lists.rules.inc, line 10
Rules integration for the mailchimp module.

Code

function mailchimp_lists_rules_condition_info() {
  $items['mailchimp_lists_mail_is_subscribed'] = array(
    'label' => t('E-Mail is subscribed to a mailchimp list'),
    'parameter' => array(
      'mail' => array(
        'type' => '*',
        'label' => t('E-Mail address'),
        'description' => t('The e-mail address for which to check whether it is subscribed to a list.'),
        'default mode' => 'selector',
      ),
      'list' => array(
        'type' => 'mailchimp_list',
        'label' => t('Mailchimp list'),
        'default mode' => 'input',
      ),
    ),
    'group' => t('Mailchimp'),
    'access callback' => 'mailchimp_lists_rules_access_callback',
    'base' => 'mailchimp_lists_rules_condition_mail_is_subscribed',
  );
  return $items;
}