function system_sort_modules_by_info_name

Same name in other branches
  1. 9 core/modules/system/system.module \system_sort_modules_by_info_name()
  2. 8.9.x core/modules/system/system.module \system_sort_modules_by_info_name()

Array sorting callback; sorts modules or themes by their name.

4 string references to 'system_sort_modules_by_info_name'
system_admin_index in modules/system/system.admin.inc
Menu callback; prints a listing of admin tasks, organized by module.
system_modules in modules/system/system.admin.inc
Menu callback; provides module enable/disable interface.
system_modules_uninstall in modules/system/system.admin.inc
Builds a form of currently disabled modules.
system_themes_page in modules/system/system.admin.inc
Menu callback; displays a listing of all themes.

File

modules/system/system.admin.inc, line 959

Code

function system_sort_modules_by_info_name($a, $b) {
    return strcasecmp($a->info['name'], $b->info['name']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.