You are here

function _answers_notify_settings in Answers 7.2

Same name and namespace in other branches
  1. 6.2 includes/answers.notify.inc \_answers_notify_settings()
  2. 6 includes/answers.notify.inc \_answers_notify_settings()
  3. 7 includes/answers.notify.inc \_answers_notify_settings()
1 call to _answers_notify_settings()
answers_settings in ./answers.module

File

includes/answers.notify.inc, line 23
Notification functions for the 'Answers' module

Code

function _answers_notify_settings() {
  $form = array();
  $form['answers_notification'] = array(
    '#type' => 'fieldset',
    '#title' => t('"New Answer" Notification Email'),
    '#description' => t('Users can ask to be notified by email when a new answer is posted to their question. Settings for the email.'),
  );
  $form['answers_notification']['answers_new_answer_notice_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Subject line'),
    '#default_value' => variable_get('answers_new_answer_notice_subject', ''),
    '#description' => t('Dynamic variables available: !question_user_name, !answer_user_name, !question_title, !question_url, and !site'),
    '#required' => TRUE,
  );
  $form['answers_notification']['answers_new_answer_notice_body'] = array(
    '#type' => 'textarea',
    '#title' => t('Body'),
    '#default_value' => variable_get('answers_new_answer_notice_body', ''),
    '#description' => t('Dynamic variables available: !question_user_name, !answer_user_name, !question_title, !question_url, and !site.'),
    '#required' => TRUE,
  );
  return $form;
}