function constant_contact_check_user in Constant Contact 6
Same name and namespace in other branches
- 5 constant_contact.module \constant_contact_check_user()
returns boolean of whether or not the user (or anon subscriber) has signed up
Parameters
string $list the friendly name of the list to check:
Return value
boolean whether or not the user (or anon subscriber) has signed up
3 calls to constant_contact_check_user()
- constant_contact_block in ./
constant_contact.module - Implementation of hook_block().
- constant_contact_block_form in ./
constant_contact.module - Implementation of hook_form() creates the join mailing list block
- constant_contact_unsubscribe_confirm_submit in ./
constant_contact.module - Implementation of hook_form_submit() process confirm unsubscribe
File
- ./
constant_contact.module, line 488
Code
function constant_contact_check_user($list) {
global $user;
return isset($_SESSION['constant_contact_lists']) && isset($_SESSION['constant_contact_lists'][$list]) && $_SESSION['constant_contact_lists'][$list] || isset($user->constant_contact_lists) && isset($user->constant_contact_lists[$list]) && $user->constant_contact_lists[$list];
}