function cc::set_action_type in Constant Contact 7.3
Same name and namespace in other branches
- 6.3 class.cc.php \cc::set_action_type()
- 6.2 class.cc.php \cc::set_action_type()
IMPORTANT! This method sets the action type If a user performs the action themselves you should call this method with the param 'contact' This triggers the welcome email if a new subscriber You may get banned if you use this setting incorrectly! The default action is ACTION_BY_CUSTOMER meaning the constant contact account owner made the action themselves, this can typically be associated with an admin subscribers users or updating a users details If you have a signup form on your website you should set this method to ACTION_BY_CONTACT Call this method before you subscribe a user or perform any other action they make and again to reset it eg. $cc->set_action_type('contact');
@access public
File
- ./
class.cc.php, line 260 - Constant Contact PHP Class
Class
- cc
- @file Constant Contact PHP Class
Code
function set_action_type($action_type = 'customer') {
$this->action_type = drupal_strtolower($action_type) == 'customer' ? 'ACTION_BY_CUSTOMER' : 'ACTION_BY_CONTACT';
}