summaryrefslogtreecommitdiff
path: root/modules/rdf
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
committerDries Buytaert <dries@buytaert.net>2010-04-13 15:23:03 +0000
commit3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d (patch)
tree4bd9c67db94feb06249cc2727dd3a5e935f58e12 /modules/rdf
parentf8e14898d636ceae44a9980105da903f57d2deef (diff)
downloadbrdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.gz
brdo-3c3cee28b94eb0c14f6958e1e6440bba15bc9a7d.tar.bz2
- Patch #716496 by JohnAlbin: documentation updates for theme functions.
Diffstat (limited to 'modules/rdf')
-rw-r--r--modules/rdf/rdf.module29
1 files changed, 10 insertions, 19 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module
index 0c6ea4f8a..b7d5b4884 100644
--- a/modules/rdf/rdf.module
+++ b/modules/rdf/rdf.module
@@ -721,7 +721,7 @@ function rdf_preprocess_image(&$variables) {
}
/**
- * Wraps a template variable in an HTML element with the desired attributes.
+ * Returns HTML for a template variable wrapped in an HTML element with the desired attributes.
*
* This is called by rdf_process() shortly before the theme system renders
* a template file. It is called once for each template variable for which
@@ -732,6 +732,14 @@ function rdf_preprocess_image(&$variables) {
* that need containing attributes are routed through this function, allowing
* the template file to receive properly wrapped variables.
*
+ * Tip for themers: if you're already outputting a wrapper element around a
+ * particular template variable in your template file and if you don't want
+ * an extra wrapper element, you can override this function to not wrap that
+ * variable and instead print the following inside your template file:
+ * @code
+ * drupal_attributes($rdf_template_variable_attributes_array[$variable_name])
+ * @endcode
+ *
* @param $variables
* An associative array containing:
* - content: A string of content to be wrapped with attributes.
@@ -760,20 +768,7 @@ function rdf_preprocess_image(&$variables) {
* hook_preprocess_rdf_template_variable_wrapper() and set 'inline'
* accordingly.
*
- * @return
- * A string containing the wrapped content. The template receives the for its
- * variable instead of the original content.
- *
- * Tip for themers: if you're already outputting a wrapper element around a
- * particular template variable in your template file and if you don't want
- * an extra wrapper element, you can override this function to not wrap that
- * variable and instead print the following inside your template file:
- * @code
- * drupal_attributes($rdf_template_variable_attributes_array[$variable_name])
- * @endcode
- *
* @see rdf_process()
- *
* @ingroup themeable
* @ingroup rdf
*/
@@ -787,7 +782,7 @@ function theme_rdf_template_variable_wrapper($variables) {
}
/**
- * Outputs a series of empty spans for exporting RDF metadata in RDFa.
+ * Returns HTML for a series of empty spans for exporting RDF metadata in RDFa.
*
* Sometimes it is useful to export data which is not semantically present in
* the HTML output. For example, a hierarchy of comments is visible for a human
@@ -801,11 +796,7 @@ function theme_rdf_template_variable_wrapper($variables) {
* corresponds to its own set of attributes, and therefore, needs its own
* element.
*
- * @return
- * A string of HTML containing markup that can be understood by RDFa parsers.
- *
* @see rdf_process()
- *
* @ingroup themeable
* @ingroup rdf
*/