function mailchimp_lists_rules_action_info in Mailchimp 7.4
Same name and namespace in other branches
- 8 modules/mailchimp_lists/mailchimp_lists.rules.inc \mailchimp_lists_rules_action_info()
- 7.5 modules/mailchimp_lists/mailchimp_lists.rules.inc \mailchimp_lists_rules_action_info()
- 7.2 modules/mailchimp_lists/mailchimp_lists.rules.inc \mailchimp_lists_rules_action_info()
- 7.3 modules/mailchimp_lists/mailchimp_lists.rules.inc \mailchimp_lists_rules_action_info()
- 2.x modules/mailchimp_lists/mailchimp_lists.rules.inc \mailchimp_lists_rules_action_info()
Implements hook_rules_action_info().
File
- modules/
mailchimp_lists/ mailchimp_lists.rules.inc, line 10 - Rules integration for the mailchimp lists module.
Code
function mailchimp_lists_rules_action_info() {
$items = array();
$items['mailchimp_lists_user_subscribe'] = array(
'label' => t('Subscribe or unsubscribe entity from a Mailchimp list'),
'parameter' => array(
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The entity to subscribe/unsubscribe'),
),
'field' => array(
'type' => '*',
'label' => t('Mailchimp List Subscription Field'),
'description' => t('Subscription Field connected to the desired Mailchimp List.'),
'restriction' => 'selector',
'wrapped' => TRUE,
'allow null' => FALSE,
),
'subscribe' => array(
'type' => 'boolean',
'label' => t('Subscribe'),
'description' => t('True to subscribe, False to unsubscribe'),
),
),
'group' => t('Mailchimp'),
'access callback' => 'mailchimp_lists_rules_access_callback',
'base' => 'mailchimp_lists_rules_action_entity_subscribe',
);
return $items;
}