You are here

function feedback_settings_overview_add_validate in Feedback 5

File

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

Code

function feedback_settings_overview_add_validate($form_id, &$edit) {
  if (in_array($edit['page_name'], $edit['pages'])) {
    form_set_error('page_name', t('This page already exists.'));
  }
}