You are here

function campaignmonitor_get_list in Campaign Monitor 8

Returns a single list.

Parameters

string $list_id: The unique ID of the list provided by CampaignMonitor.

Return value

array Array of list data.

1 call to campaignmonitor_get_list()
campaignmonitor_campaign_entity_storage_load in modules/campaignmonitor_campaign/campaignmonitor_campaign.module
Implements hook_entity_storage_load()

File

./campaignmonitor.module, line 102
Module that plugs in Campaign Monitor functionality to your Drupal web site. For Campaign Monitor information see: http://www.campaignmonitor.com/.

Code

function campaignmonitor_get_list($list_id) {
  $lists = campaignmonitor_get_lists([
    $list_id,
  ]);
  return reset($lists);
}