diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 8a20d7d1690..57057d8b12e 100644 --- a/lang/en_utf8/moodle.php +++ b/lang/en_utf8/moodle.php @@ -2,6 +2,7 @@ // moodle.php - created with Moodle 1.7 beta + (2006101003) +$string['abouttobeinstalled'] = 'about to be installed'; $string['action'] = 'Action'; $string['actions'] = 'Actions'; $string['active'] = 'Active'; @@ -385,6 +386,7 @@ $string['description'] = 'Description'; $string['deselectall'] = 'Deselect all'; $string['detailedless'] = 'Less detailed'; $string['detailedmore'] = 'More detailed'; +$string['directory'] = 'Directory'; $string['directorypaths'] = 'Directory Paths'; $string['disable'] = 'Disable'; $string['displayingfirst'] = 'Only the first $a->count $a->things are displayed'; diff --git a/lib/adminlib.php b/lib/adminlib.php index a88641aff4c..d696bc153d8 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -4558,7 +4558,7 @@ function db_replace($search, $replace) { */ function print_plugin_tables() { $compatlist = array(); - $compatlist['mods'] = array('assignment', + $compatlist['mod'] = array('assignment', 'chat', 'choice', 'data', @@ -4587,7 +4587,6 @@ function print_plugin_tables() { 'calendar_upcoming', 'course_list', 'course_summary', - 'db', 'glossary_random', 'html', 'loancalc', @@ -4610,7 +4609,7 @@ function print_plugin_tables() { 'tag_youtube', 'tags'); - $compatlist['filters'] = array('activitynames', + $compatlist['filter'] = array('activitynames', 'algebra', 'censor', 'emailprotect', @@ -4620,11 +4619,22 @@ function print_plugin_tables() { 'tex', 'tidy'); + $installed_list = array(); + $installed_mods = get_records_list('modules', '', '', '', 'name'); + $installed_blocks = get_records_list('block', '', '', '', 'name'); + + foreach($installed_mods as $mod) { + $installed_list['mod'][] = $mod->name; + } + + foreach($installed_blocks as $block) { + $installed_list['blocks'][] = $block->name; + } $plugins = array(); - $plugins['mods'] = get_list_of_plugins(); - $plugins['blocks'] = get_list_of_plugins('blocks'); - $plugins['filters'] = get_list_of_plugins('filter'); + $plugins['mod'] = get_list_of_plugins('mod', 'db'); + $plugins['blocks'] = get_list_of_plugins('blocks', 'db'); + $plugins['filter'] = get_list_of_plugins('filter', 'db'); $strstandard = get_string('standard'); $strnonstandard = get_string('nonstandard'); @@ -4632,9 +4642,21 @@ function print_plugin_tables() { $html = ''; foreach ($plugins as $cat => $list) { + $strcaption = get_string($cat); + if ($cat == 'mod') { + $strcaption = get_string('activitymodule'); + } elseif ($cat == 'filter') { + $strcaption = get_string('managefilters'); + } + $html .= '
| ' . get_string('directory') . " | \n" + . '' . get_string('name') . " | \n" + . '' . get_string('status') . " | \n"; + + $row = 1; + foreach ($list as $k => $plugin) { $standard = 'standard'; @@ -4642,7 +4664,41 @@ function print_plugin_tables() { $standard = 'nonstandard'; } - $html .= "
|---|---|---|
| " . ucfirst($plugin) . " | " . ${'str' . $standard} . " | |
| $plugin_path | \n" + . "$plugin_name | \n" + . "" . ${'str' . $standard} . $strabouttobeinstalled . " | \n