aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/components/plugin_dependencies.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/components/plugin_dependencies.php')
-rw-r--r--views/default/admin/components/plugin_dependencies.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/views/default/admin/components/plugin_dependencies.php b/views/default/admin/components/plugin_dependencies.php
deleted file mode 100644
index ea2b3a188..000000000
--- a/views/default/admin/components/plugin_dependencies.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?php
-/**
- * Shows a table of plugin dependecies for ElggPlugin in $vars['plugin'].
- *
- * This uses a table because it's a table of data.
- *
- * @package Elgg.Core
- * @subpackage Admin.Plugins
- */
-
-$plugin = elgg_extract('plugin', $vars, false);
-$deps = $plugin->package->checkDependencies(true);
-
-$columns = array('type', 'name', 'expected_value', 'local_value', 'comment');
-
-echo '<table class="elgg-plugins-dependencies styled">
- <tr>
-';
-
-foreach ($columns as $column) {
- $column = elgg_echo("admin:plugins:dependencies:$column");
- echo "<th class=\"pas\">$column</th>";
-}
-
-echo '<tr/>';
-
-$row = 'odd';
-foreach ($deps as $dep) {
- $fields = elgg_get_plugin_dependency_strings($dep);
- $type = $dep['type'];
-
- if ($dep['status']) {
- $class = "elgg-state-success elgg-dependency-$type";
- } else {
- $class = "elgg-state-error elgg-dependency-$type";
- }
-
- echo "<tr class=\"$row\">";
-
- foreach ($columns as $column) {
- echo "<td class=\"pas $class\">{$fields[$column]}</td>";
- }
-
- echo '</tr>';
-
- $row = ($row == 'odd') ? 'even' : 'odd';
-}
-
-echo '</table>'; \ No newline at end of file