content = new View("tag_cloud_page_cloud.html"); $template->content->title = t("Tag Cloud"); // If the tag cloud module is active, load its settings from the database. if (module::is_active("tag_cloud")) { $options = array(); foreach (array("tagcolor", "background_color", "mouseover", "transparent", "speed", "distribution") as $option) { $value = module::get_var("tag_cloud", $option, null); if (!empty($value)) { switch ($option) { case "tagcolor": $options["tcolor"] = $value; break; case "mouseover": $options["hicolor"] = $value; break; case "background_color": $options["bgColor"] = $value; break; case "transparent": $options["wmode"] = "transparent"; break; case "speed": $options["tspeed"] = $value; break; case "distribution": $options["distr"] = "true"; break; } } } $template->content->options = $options; } // Display the page. print $template; } }