function feedback_admin_settings_form in Feedback 7.2
Form builder; The general feedback settings form.
1 string reference to 'feedback_admin_settings_form'
- feedback_menu in ./
feedback.module - Implements hook_menu().
File
- ./
feedback.admin.inc, line 256 - Administrative functionality for Feedback module.
Code
function feedback_admin_settings_form($form, &$form_state) {
$form['feedback_excluded_paths'] = array(
'#type' => 'textarea',
'#title' => t('Paths to exclude from feedback display'),
'#default_value' => variable_get('feedback_excluded_paths', 'admin/reports/feedback'),
'#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array(
'%blog' => 'blog',
'%blog-wildcard' => 'blog/*',
'%front' => '<front>',
)),
);
$form['fieldset_labels'] = array(
'#type' => 'fieldset',
'#title' => t('Feedback labels'),
'#description' => t('You can edit labels and titles for default fields.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['fieldset_labels']['feedback_title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#size' => 40,
'#maxlength' => 128,
'#default_value' => variable_get('feedback_title', 'Feedback'),
'#description' => t("Specify the title that will appear on the feedback form. Defaults to 'Feedback'"),
);
$form['fieldset_labels']['feedback_help'] = array(
'#type' => 'textfield',
'#title' => t('Help'),
'#size' => 40,
'#maxlength' => 255,
'#default_value' => variable_get('feedback_help', 'If you experience a bug or would like to see an addition on the current page, feel free to leave us a message.'),
'#description' => t("Feedback submission guidelines. Defaults to 'If you experience a bug or would like to see an addition on the current page, feel free to leave us a message.'"),
);
$form['fieldset_labels']['feedback_message'] = array(
'#type' => 'textfield',
'#title' => t('Message'),
'#size' => 40,
'#maxlength' => 128,
'#default_value' => variable_get('feedback_message', 'Message'),
'#description' => t("Specify the label that will appear over the feedback message text field. Defaults to 'Message'"),
);
$form['fieldset_labels']['feedback_submit'] = array(
'#type' => 'textfield',
'#title' => t('Submit button'),
'#size' => 40,
'#maxlength' => 128,
'#default_value' => variable_get('feedback_submit', 'Send feedback'),
'#description' => t("Specify the label that will appear on the feedback submit button. Defaults to 'Send feedback'"),
);
$form['fieldset_labels']['feedback_submitted'] = array(
'#type' => 'textfield',
'#title' => t('Text for successful submission'),
'#size' => 40,
'#maxlength' => 128,
'#default_value' => variable_get('feedback_submitted', 'Thanks for your feedback!'),
'#description' => t("Specify the text that will appear when feedback is submitted. Defaults to 'Thanks for your feedback!'"),
);
return system_settings_form($form);
}