1.16.x common.inc backdrop_get_logo()
1.18.x common.inc backdrop_get_logo()
1.17.x common.inc backdrop_get_logo()

Gets the site logo.

Falls back to none (empty string) if not defined or theme provided.

Return value

(string) $logo: URL to the logo file to use for the site.

See also



includes/common.inc, line 294
Common functions that many Backdrop modules will need to reference.


function backdrop_get_logo() {
  $logo = '';
  $logo_info = backdrop_get_logo_info();
  if ($logo_info['path']) {
    $logo = file_create_url($logo_info['path']);

  return $logo;