You are here

function guestbook_page_form in Guestbook 7.2

Same name and namespace in other branches
  1. 5.2 guestbook.module \guestbook_page_form()
  2. 5 guestbook.module \guestbook_page_form()
  3. 6.2 guestbook.module \guestbook_page_form()
  4. 6 guestbook.module \guestbook_page_form()

Display the guestbook form on a separate page; menu callback.

1 string reference to 'guestbook_page_form'
guestbook_menu in ./guestbook.module
Implementation of hook_menu().

File

./guestbook.module, line 429

Code

function guestbook_page_form($account) {
  if (empty($account->uid)) {
    $account = drupal_anonymous_user();
  }
  if (!_guestbook_exists($account->uid)) {
    drupal_not_found();
    return;
  }
  return guestbook_form_entry($account->uid, 'page');
}