diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php index 37698e438ca..1595e7e5f85 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'; @@ -384,6 +385,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 5cab964cf5c..caca17a0986 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -4509,7 +4509,7 @@ function db_replace($search, $replace) { */ function print_plugin_tables() { $compatlist = array(); - $compatlist['mods'] = array('assignment', + $compatlist['mod'] = array('assignment', 'chat', 'choice', 'data', @@ -4538,7 +4538,6 @@ function print_plugin_tables() { 'calendar_upcoming', 'course_list', 'course_summary', - 'db', 'glossary_random', 'html', 'loancalc', @@ -4561,7 +4560,7 @@ function print_plugin_tables() { 'tag_youtube', 'tags'); - $compatlist['filters'] = array('activitynames', + $compatlist['filter'] = array('activitynames', 'algebra', 'censor', 'emailprotect', @@ -4571,11 +4570,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'); @@ -4583,17 +4593,63 @@ 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'; if (!in_array($plugin, $compatlist[$cat])) { $standard = 'nonstandard'; } + + // Get real name and full path of plugin + $plugin_name = "[[$plugin]]"; + + global $CFG; + $plugin_path = $CFG->dirroot . "/$cat/$plugin"; - $html .= "
|---|---|---|
| " . ucfirst($plugin) . " | " . ${'str' . $standard} . " | |
| $plugin_path | \n" + . "$plugin_name | \n" + . "" . ${'str' . $standard} . $strabouttobeinstalled . " | \n