You are here

function system_sort_modules_by_info_name in Drupal 8

Same name and namespace in other branches
  1. 5 modules/system/system.module \system_sort_modules_by_info_name()
  2. 6 modules/system/system.admin.inc \system_sort_modules_by_info_name()
  3. 7 modules/system/system.admin.inc \system_sort_modules_by_info_name()
  4. 9 core/modules/system/system.module \system_sort_modules_by_info_name()

Array sorting callback; sorts modules by their name.

4 string references to 'system_sort_modules_by_info_name'
AdminController::index in core/modules/system/src/Controller/AdminController.php
Prints a listing of admin tasks, organized by module.
ModulesListForm::buildForm in core/modules/system/src/Form/ModulesListForm.php
Form constructor.
ModulesUninstallForm::buildForm in core/modules/system/src/Form/ModulesUninstallForm.php
Form constructor.
SystemController::themesPage in core/modules/system/src/Controller/SystemController.php
Returns a theme listing.

File

core/modules/system/system.module, line 1059
Configuration system that lets administrators modify the workings of the site.

Code

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