You are here

function feedback_page_build in Feedback 7.2

Implements hook_page_build().

File

./feedback.module, line 291
Allows site visitors and users to report issues about this site.

Code

function feedback_page_build(&$page) {
  if (user_access('access feedback form') && !feedback_match_path(variable_get('feedback_excluded_paths', 'admin/reports/feedback'))) {
    $title = variable_get('feedback_title', 'Feedback');
    $page['page_bottom']['feedback'] = array(
      '#theme' => 'feedback_form_display',
      '#title' => t($title),
      '#content' => drupal_get_form('feedback_form'),
    );
    $path = drupal_get_path('module', 'feedback');
    $page['page_bottom']['feedback']['#attached']['css'][] = $path . '/feedback.css';
    $page['page_bottom']['feedback']['#attached']['js'][] = $path . '/feedback.js';
  }
}