You are here

function mailchimp_lists_load_multiple in Mailchimp 7.2

Loads multiple registrations by ID or based on a set of matching conditions.

@array $list_ids Array of list IDS to load. @array $conditions An array of conditions on the {mailchimp_list} table in the form 'field' => $value. @bool $reset Whether to reset the internal contact loading cache.

Return value

array An array of contact objects indexed by registration_id.

See also

entity_load()

7 calls to mailchimp_lists_load_multiple()
MailchimpListsBasicTestCase::setListsCron in modules/mailchimp_lists/tests/mailchimp_lists.test
Helper function to set the Cron setting on the test lists.
MailchimpListsBasicTestCase::testMailchimpListCRUD in modules/mailchimp_lists/tests/mailchimp_lists.test
Tests Create, Read, Update, and Delete entity operations.
mailchimp_lists_get_available_lists in modules/mailchimp_lists/mailchimp_lists.module
Return all available lists for a given user.
mailchimp_lists_load in modules/mailchimp_lists/mailchimp_lists.module
Loads a list by ID.
mailchimp_lists_overview_page in modules/mailchimp_lists/includes/mailchimp_lists.admin.inc
Administrative display showing existing lists and allowing edits/adds.

... See full list

File

modules/mailchimp_lists/mailchimp_lists.module, line 1113
Mailchimp lists module.

Code

function mailchimp_lists_load_multiple($list_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($list_ids)) {
    $list_ids = FALSE;
  }
  return entity_load('mailchimp_list', $list_ids, $conditions, $reset);
}