diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 5cb18985a..9207e937e 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -395,7 +395,7 @@ function theme_page($content) { $output .= theme_get_styles(); $output .= ' </head>'; - $output .= ' <body style="background-color: #fff; color: #000;"'. theme('onload_attribute'). '">'; + $output .= ' <body style="background-color: #fff; color: #000;">'; $output .= '<table border="0" cellspacing="4" cellpadding="4"><tr><td style="vertical-align: top; width: 170px;">'; $output .= theme('blocks', 'all'); @@ -910,28 +910,6 @@ function theme_closure($main = 0) { } /** - * Call hook_onload() in all modules to enable modules to insert JavaScript that - * will get run once the page has been loaded by the browser. - * - * @param $theme_onloads - * Additional onload directives. - * @return - * A string containing the onload attributes. - */ -function theme_onload_attribute($theme_onloads = array()) { - if (!is_array($theme_onloads)) { - $theme_onloads = array($theme_onloads); - } - // Merge theme onloads (javascript rollovers, image preloads, etc.) - // with module onloads (htmlarea, etc.) - $onloads = array_merge(module_invoke_all('onload'), $theme_onloads); - if (count($onloads)) { - return ' onload="' . implode('; ', $onloads) . '"'; - } - return ''; -} - -/** * Return a set of blocks available for the current user. * * @param $region |