You are here

function campaignmonitor_is_list_enabled in Campaign Monitor 7

Same name and namespace in other branches
  1. 8 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.

6 calls to campaignmonitor_is_list_enabled()
campaignmonitor_admin_settings_stats in includes/campaignmonitor_stats.admin.inc
Generates the statistics overview.
campaignmonitor_block_info in ./campaignmonitor.module
Implements hook_block_info().
campaignmonitor_block_view in ./campaignmonitor.module
Implements hook_block_view().
campaignmonitor_registration_form_user_register_form_alter in modules/campaignmonitor_registration/campaignmonitor_registration.module
Implements hook_form_FORM_ID_alter().
campaignmonitor_user_form in modules/campaignmonitor_user/campaignmonitor_user.module
Builds the selection list for the user profile page.

... See full list

File

./campaignmonitor.module, line 471
Module that plugs in Campaign Monitor functionality to your Drupal web site.

Code

function campaignmonitor_is_list_enabled($list_id) {
  $list_options = variable_get('campaignmonitor_list_' . $list_id, FALSE);
  return isset($list_options['status']['enabled']) ? $list_options['status']['enabled'] : 1;
}