You are here

function scs_addon_default_audience_scs_addon_settings in Simplenews Content Selection 6.2

Implements hook_scs_addon_settings()

File

contrib/scs_addon_default_audience/scs_addon_default_audience.module, line 13
Adds the possibility to add a default audience to the created newsletter

Code

function scs_addon_default_audience_scs_addon_settings() {
  $options = _get_tids(variable_get('simplenews_vid', ''));
  $form['scs_addon_default_audience']['scs_addon_default_audience_tid'] = array(
    '#type' => 'select',
    '#title' => 'default taxonomy term',
    '#default_value' => variable_get('scs_addon_default_audience_tid', 0),
    '#options' => $options,
  );
  return $form;
}