From 6a2aa2b8c768768856d6a2819c32a3f56660195c Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Sun, 22 May 2011 23:04:52 -0400
Subject: [PATCH] Issue #778346 by cwgordon7, pillarsdotnet: Rename system_sort_modules_by_info_name() to system_sort_by_info_name().

---
 modules/system/system.admin.inc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 9e7d69dd3aed5d6a6a6abecef02fa05c3b1157a2..116e698c30faa5421f284367ba43d447b6185091 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -83,7 +83,7 @@ function system_admin_index() {
     $module_info[$module] = new stdClass();
     $module_info[$module]->info = $info;
   }
-  uasort($module_info, 'system_sort_modules_by_info_name');
+  uasort($module_info, 'system_sort_by_info_name');
   $menu_items = array();
 
   foreach ($module_info as $module => $info) {
@@ -128,7 +128,7 @@ function system_settings_overview() {
 function system_themes_page() {
   // Get current list of themes.
   $themes = system_rebuild_theme_data();
-  uasort($themes, 'system_sort_modules_by_info_name');
+  uasort($themes, 'system_sort_by_info_name');
 
   $theme_default = variable_get('theme_default', 'bartik');
   $theme_groups  = array();
@@ -773,7 +773,7 @@ function system_modules($form, $form_state = array()) {
     }
   }
 
-  uasort($visible_files, 'system_sort_modules_by_info_name');
+  uasort($visible_files, 'system_sort_by_info_name');
 
   // If the modules form was submitted, then system_modules_submit() runs first
   // and if there are unfilled required modules, then $form_state['storage'] is
@@ -912,7 +912,7 @@ function system_modules($form, $form_state = array()) {
 /**
  * Array sorting callback; sorts modules or themes by their name.
  */
-function system_sort_modules_by_info_name($a, $b) {
+function system_sort_by_info_name($a, $b) {
   return strcasecmp($a->info['name'], $b->info['name']);
 }
 
@@ -1228,7 +1228,7 @@ function system_modules_uninstall($form, $form_state = NULL) {
   // uninstall.
   if (!empty($disabled_modules)) {
     $profile = drupal_get_profile();
-    uasort($disabled_modules, 'system_sort_modules_by_info_name');
+    uasort($disabled_modules, 'system_sort_by_info_name');
     $form['uninstall'] = array('#tree' => TRUE);
     foreach ($disabled_modules as $module) {
       $module_name = $module->info['name'] ? $module->info['name'] : $module->name;
-- 
1.7.4.1

