function guestbook_path in Guestbook 6
Same name and namespace in other branches
- 6.2 guestbook.module \guestbook_path()
- 7.2 guestbook.module \guestbook_path()
Helper function to return the guestbook path for a given uid.
7 calls to guestbook_path()
File
- ./
guestbook.module, line 903
Code
function guestbook_path($uid = 0) {
$uid = (int) $uid;
if ($uid > 0) {
return 'user/' . $uid . '/guestbook';
}
else {
return 'guestbook';
}
}