function newsletter_template_load in Newsletter 7
Same name and namespace in other branches
- 7.2 modules/template/newsletter_template.module \newsletter_template_load()
Loads up the requested template.
9 calls to newsletter_template_load()
- NewsletterAutomated::__construct in includes/
newsletter.automated.inc - NewsletterBasic::sendBasic in includes/
newsletter.basic.inc - Sends email to a subscriber using a basic template (confirmation/welcome/unsubscribe emails).
- NewsletterCustom::__construct in includes/
newsletter.custom.inc - NewsletterTemplateController::delete in includes/
newsletter.template.controller.inc - newsletter_basic_template_edit in includes/
newsletter.admin.inc - Menu callbacks; edit basic or non-basic newsletter templates.
File
- ./
newsletter.module, line 1013 - Defines menu items for newsletter administration, permissions and basic drupal hooks.
Code
function newsletter_template_load($ntids = FALSE, $conditions = array(), $reset = FALSE) {
if (is_numeric($ntids)) {
$id = $ntids;
$ntids = !empty($ntids) ? array(
$ntids,
) : array();
}
$templates = entity_load('newsletter_template', $ntids, $conditions, $reset);
return isset($id) ? $templates[$id] : $templates;
}