From 1650a33cb4cfe000449eab591c5e775069a37efc Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Fri, 14 Jan 2011 19:09:53 +0000 Subject: [PATCH] qtype admin MDL-25987 also allow question type settings to be on an admin_externalpage. --- admin/qtypes.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/qtypes.php b/admin/qtypes.php index 553654022da..33a70d87a4f 100644 --- a/admin/qtypes.php +++ b/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[] = '' . get_string('settings') . ''; + } else if ($settings instanceof admin_settingpage) { $row[] = '' . get_string('settings') . ''; } else { -- 2.43.0