function campaignmonitor_is_list_enabled in Campaign Monitor 8
Same name and namespace in other branches
- 7 campaignmonitor.module \campaignmonitor_is_list_enabled()
Checks if the list given by id is enabled locally. If the list id enabled 1 is returned else 0.
Parameters
string $list_id: The Campaign Monitor list ID.
Return value
int 1 if list is enabled, 0 otherwise.
7 calls to campaignmonitor_is_list_enabled()
- CampaignMonitorUserSubscriptionForm::buildForm in modules/
campaignmonitor_user/ src/ Form/ CampaignMonitorUserSubscriptionForm.php - Form constructor.
- campaignmonitor_admin_settings_stats in includes/
campaignmonitor_stats.admin.inc - Generates the statistics overview.
- campaignmonitor_ics_get_user_subscriptions in modules/
campaignmonitor_ics/ campaignmonitor_ics.module - Helper function to get a user's subscriptions.
- campaignmonitor_ics_updatex in modules/
campaignmonitor_ics/ campaignmonitor_ics.module - Implements hook_user_update().
- campaignmonitor_registration_form_user_register_form_alter in modules/
campaignmonitor_registration/ campaignmonitor_registration.module - Implements hook_form_BASE_FORM_ID_alter().
File
- ./
campaignmonitor.module, line 88 - Module that plugs in Campaign Monitor functionality to your Drupal web site. For Campaign Monitor information see: http://www.campaignmonitor.com/.
Code
function campaignmonitor_is_list_enabled($list_id) {
$list_options = campaignmonitor_get_list_settings($list_id);
return isset($list_options['status']['enabled']) ? $list_options['status']['enabled'] : 0;
}