ad_site_home_link (public)

 ad_site_home_link

Defined in packages/acs-tcl/tcl/defs-procs.tcl

Returns:
a link to the user's workspace if the user is logged in. Otherwise, a link to the page root.

Testcases:
user_links_api
Source code:
    if { [ad_conn user_id] != 0 } {
        return "<a href='[ad_pvt_home]'>[subsite::get_element -element name]</a>"
    } else {
        # we don't know who this person is
        return "<a href='[subsite::get_element -element url]'>[subsite::get_element -element name]</a>"
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: