You are here

function feedback_settings_overview in Feedback 5

admin settings overview page

1 call to feedback_settings_overview()
feedback_settings_page in ./feedback.module
feedback admin center

File

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

Code

function feedback_settings_overview($page) {

  //show feedback pages overview
  $header = array(
    t('Feedback page name'),
    t('Feedback page location'),
    '',
  );
  $pages = _feedback_get_page_names();
  foreach ($pages as $page) {
    $delete = $page != 'default' ? ' ' . l(t('delete'), 'admin/settings/feedback/' . $page . '/delete') : '';
    $path = $page != 'default' ? 'feedback/' . $page : 'feedback';
    $rows[] = array(
      $page,
      l(url($path), $path),
      l(t('edit'), 'admin/settings/feedback/' . $page) . $delete,
    );
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_get_form('feedback_settings_overview_add', $pages);
  return $output;
}