You are here

function feedback_footer in Feedback 5.2

Same name and namespace in other branches
  1. 6.2 feedback.module \feedback_footer()

Implementation of hook_footer().

File

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

Code

function feedback_footer($main = 0) {
  if (user_access('access feedback form') && $_GET['q'] != 'admin/logs/feedback') {
    $block = (object) module_invoke('feedback', 'block', 'view', 'form');
    $block->module = 'feedback';
    $block->delta = 'form';
    $block->region = 'footer';
    return theme('block', $block);
  }
}