bm_user_contributions

one of the documented procedures in this installation of the ACS
Usage:
bm_user_contributions   db   user_id   purpose
What it does:
For site admin only, returns statistics and a link to a details page
Defined in: /web/philip/tcl/bookmarks-defs.tcl

Source code:


    if { $purpose != "site_admin" } {
	return [list]
    }
    set n_total [database_to_tcl_string $db "select count(*) as n_total 
from bm_list
where owner_id = $user_id"]
    if { $n_total == 0 }  {
	return [list]
    } else {
	return [list 0 "Bookmarks" "<ul><li><a href=\"/admin/bookmarks/index?owner_id=$user_id\">$n_total bookmarks</a></ul>\n"]
    }


philg@mit.edu