summaryrefslogtreecommitdiff
path: root/includes/database.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-30 17:48:52 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-30 17:48:52 +0000
commitb176382d23fd340c91da6ba2ec73ead4704e97e0 (patch)
treefcf176cf658a8945b312f22fd494682cecdbf12a /includes/database.inc
parent59c2208ea68c4695fe0fa2122b786ac5eb748383 (diff)
downloadbrdo-b176382d23fd340c91da6ba2ec73ead4704e97e0.tar.gz
brdo-b176382d23fd340c91da6ba2ec73ead4704e97e0.tar.bz2
- Patch #16111 by chx: PHPdoc/documentation improvements.
Diffstat (limited to 'includes/database.inc')
-rw-r--r--includes/database.inc18
1 files changed, 9 insertions, 9 deletions
diff --git a/includes/database.inc b/includes/database.inc
index e2d8057b6..fe95f2d8c 100644
--- a/includes/database.inc
+++ b/includes/database.inc
@@ -175,15 +175,15 @@ function db_queryd($query) {
* Decides whether to select primary_key or DISTINCT(primary_key)
*
* @param $query
- * query to be rewritten
+ * Query to be rewritten.
* @param $primary_table
- * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, taxonomy, vocabulary
+ * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, term_data, vocabulary.
* @param $primary_key
- * name of the primary key field.
+ * Name of the primary key field.
* @param $args
- * array of additional args
+ * Array of additional arguments.
* @return
- * An array: join statements, where statements, field or DISTINCT(field)
+ * An array: join statements, where statements, field or DISTINCT(field).
*/
function _db_rewrite_sql($query = '', $primary_table = 'n', $primary_key = 'nid', $args = array()) {
$where = array();
@@ -218,13 +218,13 @@ function _db_rewrite_sql($query = '', $primary_table = 'n', $primary_key = 'nid'
* Rewrites node queries.
*
* @param $query
- * query to be rewritten
+ * Query to be rewritten.
* @param $primary_table
- * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, taxonomy, vocabulary
+ * Name or alias of the table which has the primary key field for this query. Possible values are: comments, forum, node, term_data, vocabulary.
* @param $primary_key
- * name of the primary key field.
+ * Name of the primary key field.
* @param $args
- * an array of arguments, passed to the implementations of hook_db_rewrite_sql
+ * An array of arguments, passed to the implementations of hook_db_rewrite_sql.
* @return
* The original query with JOIN and WHERE statements inserted from hook_db_rewrite_sql implementations. nid is rewritten if needed.
*/