Index: openacs-4/packages/acs-content-repository/tcl/content-extlink-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/content-extlink-procs.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-content-repository/tcl/content-extlink-procs.tcl 14 Dec 2005 15:29:26 -0000 1.6 +++ openacs-4/packages/acs-content-repository/tcl/content-extlink-procs.tcl 13 Feb 2009 22:13:06 -0000 1.7 @@ -56,6 +56,34 @@ } +ad_proc -public content::extlink::edit { + -extlink_id:required + -url:required + -label:required + -description:required +} { + + Edit an existing external link. The parameters are required because it + is assumed that the caller will be pulling the existing values out of + the database before editing them. + + @extlink_id Optional pre-assigned object_id for the link + @url The URL of the external resource + @label Label for the extlink (defaults to the URL) + @description An extended description of the link (defaults to NULL) +} { + + set modifying_user [ad_conn user_id] + set modifying_ip [ad_conn peeraddr] + + db_transaction { + db_dml extlink_update_object {} + db_dml extlink_update_extlink {} + } +} + + + ad_proc -public content::extlink::delete { -extlink_id:required } {