\n"; $output .= "
\n"; $output .= "\n"; return $output; } } function theme_init() { global $user, $themes; if ($user->theme && file_exists($themes[$user->theme][0])) { include_once $themes[$user->theme][0]; } else { include_once $themes[variable_get("theme_default", key($themes))][0]; } return new Theme(); } function theme_account($region, $theme) { global $user; if ($user->uid) { // Display account settings: $content .= "\n";
foreach (module_list() as $name) {
if (module_hook($name, "link")) {
$links = module_invoke($name, "link", "menu");
foreach ($links as $link) $content .= "$link \n"; } } if (user_access("access administration pages")) { $content .= "\n"; $content .= "". strtr(t("administer %a"), array("%a" => variable_get("site_name", "drupal"))) ." \n"; } $content .= " |