function social_font_fallback_render in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.2 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.3 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.4 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.5 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.6 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 8.8 modules/custom/social_font/social_font.module \social_font_fallback_render()
- 10.3.x modules/custom/social_font/social_font.module \social_font_fallback_render()
- 10.0.x modules/custom/social_font/social_font.module \social_font_fallback_render()
- 10.1.x modules/custom/social_font/social_font.module \social_font_fallback_render()
- 10.2.x modules/custom/social_font/social_font.module \social_font_fallback_render()
The fallback on the font renderer.
Parameters
string $fallback_value: The string value for the fallback.
Return value
string Returns a string.
1 call to social_font_fallback_render()
- social_font_render in modules/
custom/ social_font/ social_font.module - The font renderer.
File
- modules/
custom/ social_font/ social_font.module, line 101 - Contains social_font.module.
Code
function social_font_fallback_render($fallback_value) {
if ($fallback_value === '0') {
return 'serif';
}
return 'sans-serif';
}