diff --git a/includes/theme.inc b/includes/theme.inc index e71c01e301e..2fa1cc6e676 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -21,7 +21,7 @@ * @return a string containing the help output. */ function theme_help($section) { - $output = ""; + $output = ''; switch ($section) { case 'admin/system/themes#description': @@ -96,7 +96,7 @@ function theme() { $args = func_get_args(); $function = array_shift($args); - if (($theme != "") && (function_exists($theme ."_". $function))) { + if (($theme != '') && (function_exists($theme ."_". $function))) { return call_user_func_array($theme ."_". $function, $args); } elseif (function_exists("theme_". $function)){ @@ -208,7 +208,7 @@ function theme_image($name) { * @return a string containing the @a breadcrumb output. */ function theme_breadcrumb($breadcrumb) { - return "
"; + return " "; } /** @@ -245,7 +245,7 @@ function theme_node($node, $main = 0, $page = 0) { } if (count($terms)) { - $output .= " (". theme("links", $terms) .")$content
"; return $output; } @@ -393,7 +393,7 @@ function theme_block($block) { * @return a string containing the @a mark output. */ function theme_mark() { - return "*"; + return '*'; } /** @@ -450,7 +450,7 @@ function theme_xml_icon($url) { * @return a string containing the @a closure output. */ function theme_closure($main = 0) { - $footer = module_invoke_all("footer", $main); + $footer = module_invoke_all('footer', $main); return implode($footer, "\n"); } @@ -472,7 +472,7 @@ function theme_onload_attribute($theme_onloads = array()) { if (count($onloads)) { return " onload=\"" . implode("; ", $onloads) . "\""; } - return ""; + return ''; } /** @@ -483,7 +483,7 @@ function theme_onload_attribute($theme_onloads = array()) { * @return a string containing the @a blocks output. */ function theme_blocks($region) { - $output = ""; + $output = ''; if ($list = module_invoke('block', 'list', $region)) { foreach ($list as $key => $block) { @@ -497,9 +497,9 @@ function theme_blocks($region) { function _theme_table_cell($cell, $header = 0) { if (is_array($cell)) { - $data = $cell["data"]; + $data = $cell['data']; foreach ($cell as $key => $value) { - if ($key != "data") { + if ($key != 'data') { $attributes .= " $key=\"$value\""; } }