function answers_branding_form in Answers 7.3
Returns the form definition for answers administer page.
1 string reference to 'answers_branding_form'
- answers_menu in ./
answers.module - Implements hook_menu().
File
- includes/
answers.form.inc, line 82 - Form utility functions for the 'Answers' module.
Code
function answers_branding_form() {
$form = array();
$form['question'] = array(
'#type' => 'fieldset',
'#title' => t('Questions'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['question']['answers_question_create_button_text'] = array(
'#type' => 'textfield',
'#title' => t('Create'),
'#description' => t('Word for <em>Save</em>'),
'#default_value' => variable_get('answers_question_create_button_text', t('Ask Your Question')),
);
$form['question']['answers_question_edit_button_text'] = array(
'#type' => 'textfield',
'#title' => t('Update'),
'#description' => t('Word for <em>Save</em>'),
'#default_value' => variable_get('answers_question_edit_button_text', t('Update Your Question')),
);
$form['question']['answers_trans_ucquestions'] = array(
'#type' => 'textfield',
'#title' => t('Questions'),
'#description' => t('Word to use in the interface for the upper case plural word !Questions', answers_translation()),
'#default_value' => variable_get('answers_trans_ucquestions', 'Questions'),
'#size' => 20,
'#maxlength' => 20,
);
$form['question']['answers_trans_lcquestions'] = array(
'#type' => 'textfield',
'#title' => t('questions'),
'#description' => t('Word to use in the interface for the lower case plural word !questions', answers_translation()),
'#default_value' => variable_get('answers_trans_lcquestions', 'questions'),
'#size' => 20,
'#maxlength' => 20,
);
$form['question']['answers_trans_ucquestion'] = array(
'#type' => 'textfield',
'#title' => t('Question'),
'#description' => t('Word to use in the interface for the upper case singular word !Question', answers_translation()),
'#default_value' => variable_get('answers_trans_ucquestion', 'Question'),
'#size' => 20,
'#maxlength' => 20,
);
$form['question']['answers_trans_lcquestion'] = array(
'#type' => 'textfield',
'#title' => t('question'),
'#description' => t('Word to use in the interface for the lower case singular word !question', answers_translation()),
'#default_value' => variable_get('answers_trans_lcquestion', 'question'),
'#size' => 20,
'#maxlength' => 20,
);
$form['answer'] = array(
'#type' => 'fieldset',
'#title' => t('Answers'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['answer']['answers_answer_create_button_text'] = array(
'#type' => 'textfield',
'#title' => t('Create'),
'#description' => t('Word for <em>Save</em>'),
'#default_value' => variable_get('answers_answer_create_button_text', t('Post Your !Answer'), answers_translation()),
);
$form['answer']['answers_answer_edit_button_text'] = array(
'#type' => 'textfield',
'#title' => t('Update'),
'#description' => t('Word for <em>Save</em>'),
'#default_value' => variable_get('answers_answer_edit_button_text', t('Update Your !Answer', answers_translation())),
);
$form['answer']['answers_trans_ucanswers'] = array(
'#type' => 'textfield',
'#title' => t('Answers'),
'#description' => t('Word to use in the interface for the upper case plural word !Answers', answers_translation()),
'#default_value' => variable_get('answers_trans_ucanswers', t('Answers')),
'#size' => 20,
'#maxlength' => 20,
);
$form['answer']['answers_trans_lcanswers'] = array(
'#type' => 'textfield',
'#title' => t('answers'),
'#description' => t('Word to use in the interface for the lower case plural word !answers', answers_translation()),
'#default_value' => variable_get('answers_trans_lcanswers', 'answers'),
'#size' => 20,
'#maxlength' => 20,
);
$form['answer']['answers_trans_ucanswer'] = array(
'#type' => 'textfield',
'#title' => t('Answer'),
'#description' => t('Word to use in the interface for the upper case singular word !Answer', answers_translation()),
'#default_value' => variable_get('answers_trans_ucanswer', 'Answer'),
'#size' => 20,
'#maxlength' => 20,
);
$form['answer']['answers_trans_lcanswer'] = array(
'#type' => 'textfield',
'#title' => t('answer'),
'#description' => t('Word to use in the interface for the lower case singular word !answer', answers_translation()),
'#default_value' => variable_get('answers_trans_lcanswer', 'answer'),
'#size' => 20,
'#maxlength' => 20,
);
$form = system_settings_form($form);
$form['#submit'][] = 'answers_branding_form_submit';
return $form;
}