You are here

function newsletter_list_load in Newsletter 7

Same name and namespace in other branches
  1. 7.2 modules/list/newsletter_list.module \newsletter_list_load()

Loads up the requested list.

4 calls to newsletter_list_load()
NewsletterAutomated::__construct in includes/newsletter.automated.inc
NewsletterListController::delete in includes/newsletter.list.controller.inc
newsletter_field_attach_form in ./newsletter.module
Implements hook_field_attach_form().
newsletter_list in includes/newsletter.admin.inc
Menu callback; Form to list subscriber lists on a table and provide certain actions.

File

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

Code

function newsletter_list_load($nlids = FALSE, $conditions = array(), $reset = FALSE) {
  if (is_numeric($nlids)) {
    $id = $nlids;
    $nlids = !empty($nlids) ? array(
      $nlids,
    ) : array();
  }
  $lists = entity_load('newsletter_list', $nlids, $conditions, $reset);
  return isset($id) ? $lists[$id] : $lists;
}