chatroom.module

Version

1.59.2.71 (checked in on 2008/05/08 at 14:27:44 by darrenoh)

Description

Enable chat room support in Drupal.

Functions

Namesort iconDescription
chatroom_accessImplementation of hook_access().
chatroom_admin_settingsMenu callback; display site-wide chat room settings.
chatroom_admin_settings_submit
chatroom_admin_settings_validate
chatroom_archive_chatArchive old chat.
chatroom_archive_old_msgsMove old messages to archive.
chatroom_blockImplementation of hook_block().
chatroom_block_settingsAdd settings to block pages.
chatroom_block_update_cacheupdates a block cache file
chatroom_chatloads the UI for a chat, and registers this user as online
chatroom_chat_archiveloads an archived chat
chatroom_chat_deletedelete a single chat from the database
chatroom_chat_get_from_idReturns a chat room object for $chat_id.
chatroom_chat_get_latest_msgsGet all messages for chat room after last message.
chatroom_chat_get_online_listGet a list of online users in a given chat. Return the current user at the top of the list. Users who do not update within five seconds after the last message is sent are dropped from the online list.
chatroom_chat_kicked_usertells a kicked out user not to be a knob
chatroom_chat_old_msg_limitGet the number of old messages to show when entering a chat
chatroom_chat_register_userHandles update or insert for user when loading a chat room.
chatroom_chat_settingsAdd settings to chat page.
chatroom_chat_set_cachesets the chat's cache file by touching it
chatroom_chat_update_cacheupdates chat's cache file modified time
chatroom_chat_update_online_timeupdate a users online timestamp value
chatroom_create_chat_formreturns a create chat form
chatroom_create_chat_form_submitcreates a chat
chatroom_create_chat_form_validatevalidates attempt to create chat - checks this name is not already in use
chatroom_deleteImplementation of hook_delete().
chatroom_file_download
chatroom_formImplementation of hook_form().
chatroom_form_chat_archiveform for archived chat view of open chat to archive that chat
chatroom_form_chat_archive_submitArchive an open chat.
chatroom_form_chat_deleteform for archived chat view to delete that chat
chatroom_form_chat_delete_submitDelete an archived chat
chatroom_get_active_chatsgets a list of active chats
chatroom_get_all_msgsget all msgs for a given chat
chatroom_get_banned_usersGets a list of banned users for a given chat room.
chatroom_get_chatroom_listreturns the list of available chat rooms
chatroom_get_msg_infoFormat a message for display in a summary table.
chatroom_get_room_summaryreturns a the list of chats for a given room
chatroom_get_site_online_listgets a list of online users, not including the current user
chatroom_helpImplementation of hook_help().
chatroom_insertImplementation of hook_insert()
chatroom_is_banned_userChecks if the user is banned from the chat room - returns false if not.
chatroom_loadImplementation of hook_load().
chatroom_menuImplementation of hook_menu().
chatroom_node_infoImplementation of hook_node_info().
chatroom_pageMenu callback; prints a chat room listing.
chatroom_permImplementation of hook_perm().
chatroom_site_update_online_timeupdates a users online time
chatroom_smileys_filter_processsmileys module support - process smileys filtering this is modified from smileys.module because we don't have full bootstrap because we don't want to send html, just data about image
chatroom_smileys_get_textentrysmileys module support return text entry smileys list
chatroom_updateImplementation of hook_update()
chatroom_viewImplementation of hook_view().
theme_chatroom_block_chatsList site-wide chats.
theme_chatroom_block_chat_online_listGet a list of on-line users in a given chat.
theme_chatroom_block_commandsList chat commands.
theme_chatroom_block_roomsList chat rooms.
theme_chatroom_block_site_online_listoutputs html for list of online users for the whole site
theme_chatroom_chatGet HTML for chat.
theme_chatroom_chat_archiveGet HTML for chat archive page.
theme_chatroom_chat_banned_userGet HTML for ban message.
theme_chatroom_chat_boardreturns html for the message board
theme_chatroom_chat_kicked_userGet HTML for kick message.
theme_chatroom_chat_textentryreturns html for the text entry widget themeable
theme_chatroom_displayFormat the chat room listing.
theme_chatroom_listFormat the chat room table.
_chatroom_element_numeric_unsigned
_chatroom_get_cache_fileget block cache file
_chatroom_load_hex_coloursGet an array of dark hex values for user colours.
_chatroom_variable_getReplacement for variable_get because configuration variables are not loaded in session bootstrap