You are here

public function NewsletterSubscriberController::create in Newsletter 7

Same name and namespace in other branches
  1. 7.2 modules/subscriber/includes/newsletter_subscriber.controller.inc \NewsletterSubscriberController::create()

File

includes/newsletter.subscriber.controller.inc, line 18
Controller class definition file for newsletter_subscriber entity.

Class

NewsletterSubscriberController
Newsletter Subscriber Controller

Code

public function create() {
  $subscriber = new stdClass();
  $subscriber->email = '';
  $subscriber->uid = NULL;
  $subscriber->firstname = NULL;
  $subscriber->lastname = NULL;
  $subscriber->gender = NULL;
  $subscriber->receive_format = NULL;
  $subscriber->ip = NULL;
  $subscriber->confirmed = 0;
  return $subscriber;
}