1 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

backdrop_get_logo_properties()

File

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

Code

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

  return $logo;
}