summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-27 00:29:53 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-27 00:29:53 -0700
commitcb6f0ff36c5facaa09dde0146f781816779f2d40 (patch)
treed16e169c194eb4b090e670043e5700f3c5a9c14e /modules
parente85b057acb349cfdcacc508a43d4784410027a32 (diff)
downloadbrdo-cb6f0ff36c5facaa09dde0146f781816779f2d40.tar.gz
brdo-cb6f0ff36c5facaa09dde0146f781816779f2d40.tar.bz2
Issue #1191040 by sun: Use proper function for ordering tests by title.
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/simpletest.pages.inc14
1 files changed, 1 insertions, 13 deletions
diff --git a/modules/simpletest/simpletest.pages.inc b/modules/simpletest/simpletest.pages.inc
index 31d0b2ce7..a39e8b792 100644
--- a/modules/simpletest/simpletest.pages.inc
+++ b/modules/simpletest/simpletest.pages.inc
@@ -128,7 +128,7 @@ function theme_simpletest_test_table($variables) {
);
// Sorting $element by children's #title attribute instead of by class name.
- uasort($element, '_simpletest_sort_by_title');
+ uasort($element, 'element_sort_by_title');
// Cycle through each test within the current group.
foreach (element_children($element) as $test_name) {
@@ -178,18 +178,6 @@ function theme_simpletest_test_table($variables) {
}
/**
- * Sort element by title instead of by class name.
- */
-function _simpletest_sort_by_title($a, $b) {
- // This is for parts of $element that are not an array.
- if (!isset($a['#title']) || !isset($b['#title'])) {
- return 1;
- }
-
- return strcasecmp($a['#title'], $b['#title']);
-}
-
-/**
* Run selected tests.
*/
function simpletest_test_form_submit($form, &$form_state) {