Skip to content
Browse files

qtype admin MDL-25987 also allow question type settings to be on an a…

…dmin_externalpage.
  • Loading branch information...
1 parent 63b5318 commit 1650a33cb4cfe000449eab591c5e775069a37efc @timhunt timhunt committed Jan 14, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/qtypes.php
View
6 admin/qtypes.php
@@ -247,7 +247,11 @@
}
// Settings link, if available.
- if (file_exists($qtype->plugin_dir() . '/settings.php')) {
+ $settings = admin_get_root()->locate('qtypesetting' . $qtypename);
+ if ($settings instanceof admin_externalpage) {
+ $row[] = '<a href="' . $settings->url .
+ '">' . get_string('settings') . '</a>';
+ } else if ($settings instanceof admin_settingpage) {
$row[] = '<a href="' . admin_url('settings.php?section=qtypesetting' . $qtypename) .
'">' . get_string('settings') . '</a>';
} else {

0 comments on commit 1650a33

Please sign in to comment.
Something went wrong with that request. Please try again.