You are here

function party_simplenews_form_simplenews_admin_settings_subscription_alter in Party 8.2

Implements hook_form_FORM_ID_alter()

File

modules/party_simplenews/party_simplenews.module, line 89
Main module file for Party Simplenews integration

Code

function party_simplenews_form_simplenews_admin_settings_subscription_alter(&$form, &$form_state) {
  $form['party'] = array(
    '#type' => 'fieldset',
    '#title' => t('Party'),
    '#collapsible' => FALSE,
    '#weight' => -1,
  );
  $form['party']['simplenews_sync_party'] = array(
    '#type' => 'checkbox',
    '#title' => t('Synchronize with party'),
    '#default_value' => variable_get('simplenews_sync_party', TRUE),
    '#description' => t('When checked subscriptions will be synchronized with the Party. When Parties are deleted, subscriptions with the same email address will be removed. When not checked subscriptions will be unchanged when associated accounts are deleted or blocked.'),
  );
}