You are here

function _search_get_module_names in Drupal 7

Helper function to get real module names.

1 call to _search_get_module_names()
search_admin_settings in modules/search/search.admin.inc
Menu callback: displays the search module settings page.

File

modules/search/search.admin.inc, line 31
Admin page callbacks for the search module.

Code

function _search_get_module_names() {
  $search_info = search_get_info(TRUE);
  $system_info = system_get_info('module');
  $names = array();
  foreach ($search_info as $module => $info) {
    $names[$module] = $system_info[$module]['name'];
  }
  asort($names, SORT_STRING);
  return $names;
}