You are here

function _feedback_add_page in Feedback 5

2 calls to _feedback_add_page()
feedback_install in ./feedback.install
feedback_settings_overview_add_submit in ./feedback.module

File

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

Code

function _feedback_add_page($pagename) {
  $defaults = array(
    'email' => variable_get('site_mail', ini_get('sendmail_from')),
    'title' => t('feedback'),
    'hourly_threshold' => 3,
    'logging' => 1,
    'field_name' => 1,
    'field_body' => 1,
  );
  db_query("INSERT INTO {feedback_pages} (name, data) VALUES('%s','%s')", $pagename, serialize($defaults));
}