* Moved a few things around in the settings screen.

* Fixed a potential problem with themes.
This commit is contained in:
Alexis Wilke
2010-04-21 10:32:17 +00:00
parent 1e627725ac
commit f3409f422e
3 changed files with 54 additions and 31 deletions

View File

@@ -50,10 +50,11 @@ function simplemenu_init() {
if (user_access('view simplemenu') && simplemenu_enabled()) {
$path = drupal_get_path('module', 'simplemenu');
drupal_add_css($path .'/simplemenu.css');
$simplemenu_theme = variable_get('simplemenu_theme', 'original');
if ($simplemenu_theme != 'custom') {
drupal_add_css($path .'/themes/'. $simplemenu_theme .'/'. $simplemenu_theme .'.css');
$simplemenu_theme = variable_get('simplemenu_theme', 'original');
$theme_file = $path .'/themes/'. $simplemenu_theme .'/'. $simplemenu_theme .'.css';
if (is_file($theme_file)) {
drupal_add_css($theme_file);
}
$settings = array(