1.20.x installer.browser.inc | installer_browser_get_server_list() |
Gets the list of servers to use for fetching results.
The installer_browser_fetch_results($filters) call returns an array with the following keys:
Return value
Returns an array representing the active server with the following keys::
- url: The absolute url to the server without query parameters.
- name: A human-readable name for this server.
- site_name: The domain name for the "See on @site" link.
- logo: An image logo for the repository.
For example:
array(
"url" => "https://projects.backdropcms.org",
"name" => "Backdrop",
"site_name" => "BackdropCMS.org",
"logo" => "core/modules/installer/images/backdrop.png",
)
File
- modules/
installer/ installer.browser.inc, line 359 - Various functions that are required by the Installer browse pages.
Code
function installer_browser_get_server_list() {
$server_list = config_get('installer.settings', 'installer_server');
backdrop_alter('installer_server_list', $server_list);
// Compatibility: Wrap a single server instance in an array.
if (array_key_exists('url', $server_list)) {
$server_list = array($server_list);
}
return $server_list;
}