summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-11-24 22:46:03 +0000
committerDries Buytaert <dries@buytaert.net>2003-11-24 22:46:03 +0000
commit06045ff7fcd44626185548fc886b9e5e5d7e867e (patch)
tree6c66903171069010aacbd42f28ee2fa35803d8b5 /includes/common.inc
parentaf5bc7cdefa0b6c491feece42d1e0b67a4de19c9 (diff)
downloadbrdo-06045ff7fcd44626185548fc886b9e5e5d7e867e.tar.gz
brdo-06045ff7fcd44626185548fc886b9e5e5d7e867e.tar.bz2
Patch by Ax to fixe and improve to the core doxygen PHPdoc:
* fixes all doxygen warnings [#]_ in the current code base + changes @param style from phpDocumentor (@param type $var desc) to doxygen (@param $var desc) + documents all undocumented parameters + escapes / fixes html warnings + fixes @defgroup in theme.inc * adds more groupings [#]_ + drupal_{set|get}_title, drupal_{set|get}_breadcrumb + pager.inc: pager_api (pager_query(), pager_display()), pager pieces * adds a new group "themeable" which contains all themeable functions.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc16
1 files changed, 10 insertions, 6 deletions
diff --git a/includes/common.inc b/includes/common.inc
index aaa95276c..5e4fa290c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -2,7 +2,9 @@
// $Id$
/**
+ * @name drupal_title
* Functions to get and set the title of the current page.
+ * @{
*/
function drupal_set_title($title = NULL) {
static $stored_title;
@@ -22,12 +24,14 @@ function drupal_get_title() {
return $title;
}
-
+// @}
/**
+ * @name drupal_breadcrumb
* Functions to get and set the breadcrumb trail of the current page. The
* breadcrumb trail is represented as an array of links, starting with
* "home" and proceeding up to but not including the current page.
+ * @{
*/
function drupal_set_breadcrumb($breadcrumb = NULL) {
static $stored_breadcrumb;
@@ -48,7 +52,7 @@ function drupal_get_breadcrumb() {
return $breadcrumb;
}
-
+// @}
/**
* Build the alias/path array
@@ -249,9 +253,9 @@ function valid_url($url) {
/**
* Format a single result entry of a search query:
*
- * @param $item a single search result as returned by <module>_search of type
- * array("count" => ..., "link" => ..., "title" => ...,
- * "user" => ..., "date" => ..., "keywords" => ...)
+ * @param $item a single search result as returned by <i>module</i>_search of
+ * type array("count" => ..., "link" => ..., "title" => ..., "user" => ...,
+ * "date" => ..., "keywords" => ...)
* @param $type module type of this item
*/
function search_item($item, $type) {
@@ -344,7 +348,7 @@ function search_data($keys = NULL) {
* @param $type If set, search only nodes of this type.
* Otherwise, search all types.
* @param $action Form action. Defaults to 'site.com/search'.
- * @param $query Query string. Defaults to global $keys.
+ * @param $keys Query string. Defaults to global $keys.
* @param $options != 0: Render additional form fields/text
* ("Restrict search to", help text, etc).
*/