Permalink
Browse files

add all plugins to options for code sniffing

  • Loading branch information...
1 parent b46f57f commit 95cfbc93a411cdb890b602ead7f76d63004fa41e @cash cash committed Jan 9, 2012
Showing with 13 additions and 2 deletions.
  1. +2 −0 README.md
  2. +11 −2 views/default/forms/qa/sniffer.php
View
@@ -4,3 +4,5 @@ Elgg Quality Assurance Tool
* Coding Standards Tests
* Unit Test Coverage (TODO)
* Software Metrics (TODO)
+
+*Note: requires PHP 5.3*
@@ -1,14 +1,23 @@
<?php
/**
- *
+ * Select options for code sniffing
*/
+$plugins = elgg_get_plugins('all');
+$reducer = function($plugin) {
+ return $plugin->getID();
+};
+$options = array_map($reducer, $plugins);
+sort($options);
+
+array_unshift($options, 'engine');
+
echo '<div>';
echo '<label>' . elgg_echo('qa:sniffer:label:component') . ':</label> ';
echo elgg_view('input/dropdown', array(
'name' => 'component',
'value' => 'engine',
- 'options' => array('engine', 'blog'),
+ 'options' => $options,
));
echo '</div>';

0 comments on commit 95cfbc9

Please sign in to comment.