You are here

function guestbook_path in Guestbook 7.2

Same name and namespace in other branches
  1. 6.2 guestbook.module \guestbook_path()
  2. 6 guestbook.module \guestbook_path()

Helper function to return the guestbook path for a given uid.

7 calls to guestbook_path()
guestbook_delete_entry_confirm in ./guestbook.module
guestbook_form_comment_form in ./guestbook.module
guestbook_form_entry_form in ./guestbook.module
Form builder function for guestbook post form.
guestbook_form_entry_form_edit_submit in ./guestbook.module
Submit handler for editing guestbook entries.
theme_guestbook_entry in ./guestbook.module

... See full list

File

./guestbook.module, line 1145

Code

function guestbook_path($uid = 0) {
  $uid = (int) $uid;
  if ($uid > 0) {
    return 'user/' . $uid . '/guestbook';
  }
  else {
    return 'guestbook';
  }
}