function structured_data_get_site_name in Structured Data (JSON+LD Rich Snippets) 7
Gets only the site name.
Return value
(string) Site name.
1 call to structured_data_get_site_name()
- structured_data_preprocess_html in ./
structured_data.module - Implements template_preprocess_html().
File
- ./
structured_data.module, line 103 - Annotate your content to generate Rich Search Snippets.
Code
function structured_data_get_site_name() {
// Get the site name.
if ($custom_name = variable_get('structured_data_site_name_custom', FALSE)) {
$site_name = $custom_name;
}
else {
$site_name = variable_get('site_name', '');
}
return $site_name;
}