You are here

function feedback_settings_overview_add in Feedback 5

1 string reference to 'feedback_settings_overview_add'
feedback_settings_overview in ./feedback.module
admin settings overview page

File

./feedback.module, line 82
Enables a site-wide feedback page.

Code

function feedback_settings_overview_add($pages) {
  $form['group']['page_name'] = array(
    '#type' => 'textfield',
    '#title' => t('Feedback page name'),
    '#size' => 50,
    '#maxlength' => 60,
    '#required' => TRUE,
  );
  $form['group'][] = array(
    '#type' => 'submit',
    '#value' => t('Add page'),
  );
  $form['group'] += array(
    '#type' => 'fieldset',
    '#title' => t('Add a further feedback page'),
  );
  $form['pages'] = array(
    '#type' => 'value',
    '#value' => $pages,
  );
  return $form;
}