Commit 34a7bbcf authored by Dries's avatar Dries

- Patch #855400 by aspilicious: fix issues in theme.inc - newlines and missing doc.

parent 5038c5d3
...@@ -228,6 +228,7 @@ function _drupal_theme_initialize($theme, $base_theme = array(), $registry_callb ...@@ -228,6 +228,7 @@ function _drupal_theme_initialize($theme, $base_theme = array(), $registry_callb
/** /**
* Get the theme registry. * Get the theme registry.
*
* @return * @return
* The theme registry array if it has been stored in memory, NULL otherwise. * The theme registry array if it has been stored in memory, NULL otherwise.
*/ */
...@@ -237,8 +238,10 @@ function theme_get_registry() { ...@@ -237,8 +238,10 @@ function theme_get_registry() {
/** /**
* Store the theme registry in memory. * Store the theme registry in memory.
*
* @param $registry * @param $registry
* A registry array as returned by _theme_build_registry() * A registry array as returned by _theme_build_registry()
*
* @return * @return
* The theme registry array stored in memory * The theme registry array stored in memory
*/ */
...@@ -542,6 +545,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) { ...@@ -542,6 +545,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) {
* *
* @param $refresh * @param $refresh
* Whether to reload the list of themes from the database. Defaults to FALSE. * Whether to reload the list of themes from the database. Defaults to FALSE.
*
* @return * @return
* An associative array of the currently available themes. The keys are the * An associative array of the currently available themes. The keys are the
* names of the themes and the values are objects having the following * names of the themes and the values are objects having the following
...@@ -1102,6 +1106,7 @@ function drupal_find_theme_templates($cache, $extension, $path) { ...@@ -1102,6 +1106,7 @@ function drupal_find_theme_templates($cache, $extension, $path) {
* The name of the setting to be retrieved. * The name of the setting to be retrieved.
* @param $theme * @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 * @return
* The value of the requested setting, NULL if the setting does not exist. * The value of the requested setting, NULL if the setting does not exist.
*/ */
...@@ -1992,6 +1997,19 @@ function theme_indentation($variables) { ...@@ -1992,6 +1997,19 @@ function theme_indentation($variables) {
* @} End of "ingroup themeable". * @} 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) { function _theme_table_cell($cell, $header = FALSE) {
$attributes = ''; $attributes = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment