notification::display::get_urls (public)

 notification::display::get_urls -type type -object_id object_id \
    [ -return_url return_url ] [ -pretty_name pretty_name ] \
    [ -user_id user_id ]

Defined in packages/notifications/tcl/notification-display-procs.tcl

Get both subscribe_url and unsubscribe_url as a list. At most one of them will be set. Example:

    lassign [notification::display::get_urls  -type "my_notif_type"  -object_id $object_id  -pretty_name $title] subscribe_url unsubscribe_url
    

Switches:
-type (required)
-object_id (required)
-return_url (optional)
-pretty_name (optional)
-user_id (optional)
Returns:
a Tcl list with two elements (subscribe_url, unsubscribe_url)

Testcases:
No testcase defined.
[ show source ]
Show another procedure: