Permalink
Browse files

MDL-27867 course: Course and category theme selectors no longer show …

…theme's that should be hidden from the selector
  • Loading branch information...
1 parent 690ef50 commit 199e7e9f85d1b8998a93caf4a54c8632d8eb25e9 Sam Hemelryk committed Sep 28, 2011
Showing with 6 additions and 2 deletions.
  1. +3 −1 course/edit_form.php
  2. +3 −1 course/editcategory_form.php
View
@@ -176,7 +176,9 @@ function definition() {
$themes=array();
$themes[''] = get_string('forceno');
foreach ($themeobjects as $key=>$theme) {
- $themes[$key] = $theme->name;
+ if (empty($theme->hidefromselector)) {
+ $themes[$key] = $theme->name;
+ }
}
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
}
@@ -41,7 +41,9 @@ function definition() {
$themes = array(''=>get_string('forceno'));
$allthemes = get_list_of_themes();
foreach ($allthemes as $key=>$theme) {
- $themes[$key] = $theme->name;
+ if (empty($theme->hidefromselector)) {
+ $themes[$key] = $theme->name;
+ }
}
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
}

0 comments on commit 199e7e9

Please sign in to comment.