public function NewsletterNewsletterController::saveDraft in Newsletter 7
File
- includes/
newsletter.newsletter.controller.inc, line 69 - Controller class definition file for newsletter_newsletter entity.
Class
- NewsletterNewsletterController
- Newsletter Newsletter Controller
Code
public function saveDraft($subscribers, $draft) {
$drafts = variable_get('newsletter_custom_drafts', array());
$drafts[$draft->nnid] = array(
'subscribers' => $subscribers,
'ntid' => $draft->ntid,
);
variable_set('newsletter_custom_drafts', $drafts);
}