Query Builder in Privatemsg 7
Same name and namespace in other branches
Query builder and related hooks
Privatemsg uses SelectQuery combined with custom tags to allow to customize almost all SELECT queries. For more information about SelectQuery, see http://drupal.org/developing/api/database and http://drupal.org/node/310075.
Arguments to a given query is stored in the metadata, with numerical keys (arg_%d) according to the position of the argument.
File
- ./
privatemsg.api.php, line 21 - Privatemsg API Documentation
Functions
Name | Location | Description |
---|---|---|
hook_query_privatemsg_autocomplete_alter |
./ |
Query to search for autocomplete usernames. |
hook_query_privatemsg_deleted_alter |
./ |
Alter the query that loads deleted messages to flush them. |
hook_query_privatemsg_messages_alter |
./ |
Query definition to load messages of one or multiple threads. |
hook_query_privatemsg_participants_alter |
./ |
Alter the query that loads the participants of a thread. |
hook_query_privatemsg_sql_list_alter |
./ |
Display a list of threads. |
hook_query_privatemsg_unread_count_alter |
./ |
Loads all unread messages of a user (only the count query is used). |
privatemsg_sql_autocomplete |
./ |
Looks up autocomplete suggestions for users. |
privatemsg_sql_deleted |
./ |
Query Builder function to load all messages that should be flushed. |
privatemsg_sql_list |
./ |
Query definition to load a list of threads. |
privatemsg_sql_messages |
./ |
Query definition to load messages of one or multiple threads. |
privatemsg_sql_participants |
./ |
Load all participants of a thread. |
privatemsg_sql_unread_count |
./ |
Count threads with unread messages. |
_privatemsg_assemble_query |
./ |
Generates a query based on a query id. |