public function SimplenewsNewsletterController::create in Simplenews 7.2
Overrides EntityAPIController::create().
Overrides EntityAPIController::create
File
- includes/
simplenews.controller.inc, line 18 - Seimplenews entity controllers definitions.
Class
- SimplenewsNewsletterController
- Controller for simplenews_newsletter entity.
Code
public function create(array $values = array()) {
$values += array(
'name' => '',
'description' => '',
'format' => variable_get('simplenews_format', 'plain'),
'priority' => variable_get('simplenews_priority', SIMPLENEWS_PRIORITY_NONE),
'receipt' => variable_get('simplenews_receipt', 0),
'from_name' => variable_get('simplenews_from_name', variable_get('site_name', 'Drupal')),
'email_subject' => '[[simplenews-newsletter:name]] [node:title]',
'from_address' => variable_get('simplenews_from_address', variable_get('site_mail', ini_get('sendmail_from'))),
'hyperlinks' => 1,
'new_account' => 'none',
'opt_inout' => 'double',
'block' => 1,
'weight' => '0',
);
return parent::create($values);
}