You are here

function newsletter_load_multiple in Newsletter 7.2

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

Parameters

$newsletter_ids: An array of newsletter IDs.

$conditions: Deprecated. use EntityFieldQuery instead.

$reset: Whether to reset the internal template loading cache.

Return value

An array of newsletter template objects indexed by nsid.

See also

entity_load()

1 call to newsletter_load_multiple()
newsletter_load in ./newsletter.module
Loads a newsletter by ID.

File

./newsletter.module, line 412
Defines menu items for newsletter administration, permissions and basic drupal hooks.

Code

function newsletter_load_multiple($newsletter_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($newsletter_ids) && empty($conditions)) {
    return array();
  }
  return entity_load('newsletter', $newsletter_ids, $conditions, $reset);
}