Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 199e7e9f85d1b8998a93caf4a54c8632d8eb25e9 1 parent 690ef50
@samhemelryk samhemelryk authored
Showing with 6 additions and 2 deletions.
  1. +3 −1 course/edit_form.php
  2. +3 −1 course/editcategory_form.php
View
4 course/edit_form.php
@@ -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);
}
View
4 course/editcategory_form.php
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.