You are here

function scs_admin_settings_form in Simplenews Content Selection 6

Same name and namespace in other branches
  1. 8 scs.admin.inc \scs_admin_settings_form()
  2. 6.2 scs.admin.inc \scs_admin_settings_form()
  3. 7.2 scs.admin.inc \scs_admin_settings_form()
  4. 7 scs.admin.inc \scs_admin_settings_form()
1 string reference to 'scs_admin_settings_form'
scs_menu in ./scs.module

File

./scs.admin.inc, line 11

Code

function scs_admin_settings_form() {
  $form = array();
  $form['scs_content_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Content types'),
    '#description' => t('Select the content types that must be avaiable for node selection'),
    '#options' => _scs_get_node_types(),
    '#default_value' => variable_get('scs_content_types', array()),
  );
  $form['scs_format'] = array(
    '#type' => 'radios',
    '#title' => t('Newsletter format'),
    '#description' => t('Select the format of the newsletters you want to send'),
    '#options' => array(
      'plain' => t('Plain'),
      'html' => t('HTML'),
    ),
    '#default_value' => variable_get('scs_format', 'plain'),
  );
  return system_settings_form($form);
}