message-delete.tcl

Display delete message confirmation.

Location:
/packages/chat/www/message-delete.tcl
Author:
David Dao <ddao@arsdigita.com>
Created:
January 18, 2001
CVS ID:
$Id: message-delete.tcl,v 1.8.2.3 2022/07/15 13:35:12 antoniop Exp $

Related Files

[ hide source ] | [ make this the default ]

File Contents

#/chat/www/message-delete.tcl
ad_page_contract {
    Display delete message confirmation.

    @author David Dao (ddao@arsdigita.com)
    @creation-date January 18, 2001
    @cvs-id $Id: message-delete.tcl,v 1.8.2.3 2022/07/15 13:35:12 antoniop Exp $
} {
    room_id:object_type(chat_room)
} -properties {
    room_id:onevalue
    pretty_name:onevalue
    message_count:onevalue
    context_bar:onevalue
}

permission::require_permission -object_id $room_id -privilege chat_room_delete

set context_bar [list [list "room?room_id=$room_id" "[_ chat.Room_Information]""[_ chat.Delete_messages]"]

set r [::xo::db::Class get_instance_from_db -id $room_id]
set pretty_name [$r set pretty_name]

set message_count [$r count_messages]

ad_return_template

# Local variables:
#    mode: tcl
#    tcl-indent-level: 4
#    indent-tabs-mode: nil
# End: