function mailchimp_get_list in Mailchimp 7.3
Same name and namespace in other branches
- 8 mailchimp.module \mailchimp_get_list()
- 7.5 mailchimp.module \mailchimp_get_list()
- 7.2 mailchimp.module \mailchimp_get_list()
- 7.4 mailchimp.module \mailchimp_get_list()
- 2.x mailchimp.module \mailchimp_get_list()
Wrapper around mailchimp_get_lists() to return a single list.
Parameters
string $list_id: The unique ID of the list provided by MailChimp.
Return value
array A list array formatted as indicated in the MailChimp API documentation.
9 calls to mailchimp_get_list()
- MailChimpCampaignController::attachLoad in modules/
mailchimp_campaign/ includes/ mailchimp_campaign.controller.inc - Implement in order to attach MailChimp data to campaign entities.
- MailchimpListsTestCase::testGetList in modules/
mailchimp_lists/ tests/ mailchimp_lists.test - Tests retrieval of a specific list.
- mailchimp_lists_field_formatter_view in modules/
mailchimp_lists/ includes/ mailchimp_lists.field.inc - Implements hook_field_formatter_view().
- mailchimp_lists_field_get in modules/
mailchimp_lists/ includes/ mailchimp_lists.field.inc - Entity field data callback for MailChimp subscription fields.
- mailchimp_lists_field_widget_form in modules/
mailchimp_lists/ includes/ mailchimp_lists.field.inc - Implements hook_field_widget_form().
File
- ./
mailchimp.module, line 149 - Mailchimp module.
Code
function mailchimp_get_list($list_id) {
$lists = mailchimp_get_lists(array(
$list_id,
));
return reset($lists);
}