You are here

function guestbook_path in Guestbook 6

Same name and namespace in other branches
  1. 6.2 guestbook.module \guestbook_path()
  2. 7.2 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_delete_entry_confirm_submit in ./guestbook.module
guestbook_form_comment_form_submit in ./guestbook.module
guestbook_form_entry_form_submit in ./guestbook.module
theme_guestbook_entry in ./guestbook.module

... See full list

File

./guestbook.module, line 903

Code

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