summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-07-21 00:27:24 +0000
committerDries Buytaert <dries@buytaert.net>2010-07-21 00:27:24 +0000
commit34a7bbcf54553126129a27b695eb417d88bb91f6 (patch)
treed68f05cf07a04d5c4995139e7cf2af9ccd2965a3
parent5038c5d3df6353542f66acbb231316fb74d0f20c (diff)
downloadbrdo-34a7bbcf54553126129a27b695eb417d88bb91f6.tar.gz
brdo-34a7bbcf54553126129a27b695eb417d88bb91f6.tar.bz2
- Patch #855400 by aspilicious: fix issues in theme.inc - newlines and missing doc.
-rw-r--r--includes/theme.inc22
1 files changed, 20 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index fef9221c1..b512d35e7 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -228,6 +228,7 @@ function _drupal_theme_initialize($theme, $base_theme = array(), $registry_callb
/**
* Get the theme registry.
+ *
* @return
* The theme registry array if it has been stored in memory, NULL otherwise.
*/
@@ -237,8 +238,10 @@ function theme_get_registry() {
/**
* Store the theme registry in memory.
+ *
* @param $registry
* A registry array as returned by _theme_build_registry()
+ *
* @return
* The theme registry array stored in memory
*/
@@ -542,6 +545,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) {
*
* @param $refresh
* Whether to reload the list of themes from the database. Defaults to FALSE.
+ *
* @return
* An associative array of the currently available themes. The keys are the
* names of the themes and the values are objects having the following
@@ -1099,9 +1103,10 @@ function drupal_find_theme_templates($cache, $extension, $path) {
* given for $theme.
*
* @param $setting_name
- * The name of the setting to be retrieved.
+ * The name of the setting to be retrieved.
* @param $theme
- * The name of a given theme; defaults to the current theme.
+ * The name of a given theme; defaults to the current theme.
+ *
* @return
* The value of the requested setting, NULL if the setting does not exist.
*/
@@ -1992,6 +1997,19 @@ function theme_indentation($variables) {
* @} End of "ingroup themeable".
*/
+/**
+ * Returns HTML output for a single table cell for theme_table().
+ *
+ * @param $cell
+ * Array of cell information, or string to display in cell.
+ * @param bool $header
+ * TRUE if this cell is a table header cell, FALSE if it is an ordinary
+ * table cell. If $cell is an array with element 'header' set to TRUE, that
+ * will override the $header parameter.
+ *
+ * @return
+ * HTML for the cell.
+ */
function _theme_table_cell($cell, $header = FALSE) {
$attributes = '';