You are here

function _simplenews_get_node_defaults in Simplenews 6.2

Get defaults for the simplenews node form.

2 calls to _simplenews_get_node_defaults()
simplenews_nodeapi in ./simplenews.module
Implementation of hook_nodeapi().
simplenews_node_tab_send_form in ./simplenews.module
Simplenews tab form

File

./simplenews.module, line 2371
Simplenews node handling, sent email, newsletter block and general hooks

Code

function _simplenews_get_node_defaults() {
  $defaults = array(
    'advanced' => array(
      's_format' => variable_get('simplenews_format', 'plain'),
      'priority' => variable_get('simplenews_priority', SIMPLENEWS_PRIORITY_NONE),
      'receipt' => variable_get('simplenews_receipt', 0),
    ),
    's_status' => '0',
    'test_address' => variable_get('simplenews_test_address', variable_get('site_mail', ini_get('sendmail_from'))),
  );
  return $defaults;
}