1.20.x installer.browser.inc installer_browser_get_server()

Gets the server 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",
   )
  

Deprecated

since 1.15

File

modules/installer/installer.browser.inc, line 328
Various functions that are required by the Installer browse pages.

Code

function installer_browser_get_server() {
  watchdog_deprecated_function('installer', __FUNCTION__);

  $server_list = installer_browser_get_server_list();
  $server = reset($server_list);
  backdrop_alter('installer_server', $server);

  return $server;
}