You are here

function _answers_display_settings in Answers 6.2

Add settings relating to display to the admin form

1 call to _answers_display_settings()
answers_settings in ./answers.module
Answer administer settings form definition.

File

includes/answers.display.inc, line 11
Display utility functions for the 'Answers' module

Code

function _answers_display_settings() {
  $form = array();
  $form['answers_display'] = array(
    '#type' => 'fieldset',
    '#title' => t('Display Settings'),
  );
  $form['answers_display']['answers_redirect_from_answer_to_question_nodes_p'] = array(
    '#type' => 'checkbox',
    '#title' => t('Redirect paths from answers to questions'),
    '#default_value' => variable_get('answers_redirect_from_answer_to_question_nodes_p', TRUE),
    '#description' => t('This will redirect from showing answer nodes in page view to instead showing the question node in page view, scrolling down to the answer. (Recommended)'),
  );
  return $form;
}