You are here

function _answers_notify_settings in Answers 6

Same name and namespace in other branches
  1. 6.2 includes/answers.notify.inc \_answers_notify_settings()
  2. 7 includes/answers.notify.inc \_answers_notify_settings()
  3. 7.2 includes/answers.notify.inc \_answers_notify_settings()

File

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

Code

function _answers_notify_settings() {
  $form = array();
  $form['answers_notification'] = array(
    '#type' => 'fieldset',
    '#description' => t('Settings for the email which is sent to notify a question asker when a new answer is posted (if the asker asks for notification).'),
    '#title' => t('Notification Email Settings'),
  );
  $form['answers_notification']['answers_answer_notification_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Subject line'),
    '#default_value' => variable_get('answers_answer_notification_subject', ''),
    '#description' => t('Dynamic variables available: !question_user_name, !answer_user_name, !question_title, !question_url, and !site'),
    '#required' => TRUE,
  );
  $form['answers_notification']['answers_answer_notification_body'] = array(
    '#type' => 'textarea',
    '#title' => t('Body'),
    '#default_value' => variable_get('answers_answer_notification_body', ''),
    '#description' => t('Dynamic variables available: !question_user_name, !answer_user_name, !question_title, !question_url, and !site.'),
    '#required' => TRUE,
  );
  return $form;
}