MDL-15402: do not display type form if there is no option to set

This commit is contained in:
jerome 2008-09-19 06:16:20 +00:00
parent ea16a91d2e
commit ce2066a1c2

View File

@ -91,9 +91,12 @@ if (!empty($edit) || !empty($new)) {
} else {
admin_externalpage_print_header();
print_heading(get_string('configplugin', 'repository_'.$plugin));
print_simple_box_start();
$mform->display();
print_simple_box_end();
$typeoptionnames = repository_static_function($edit, 'get_type_option_names');
if (!empty($typeoptionnames)){
print_simple_box_start();
$mform->display();
print_simple_box_end();
}
$return = false;
//display instances list and creation form