You are here

function social_font_fallback_render in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 modules/custom/social_font/social_font.module \social_font_fallback_render()
  2. 8 modules/custom/social_font/social_font.module \social_font_fallback_render()
  3. 8.2 modules/custom/social_font/social_font.module \social_font_fallback_render()
  4. 8.3 modules/custom/social_font/social_font.module \social_font_fallback_render()
  5. 8.4 modules/custom/social_font/social_font.module \social_font_fallback_render()
  6. 8.5 modules/custom/social_font/social_font.module \social_font_fallback_render()
  7. 8.6 modules/custom/social_font/social_font.module \social_font_fallback_render()
  8. 8.8 modules/custom/social_font/social_font.module \social_font_fallback_render()
  9. 10.3.x modules/custom/social_font/social_font.module \social_font_fallback_render()
  10. 10.0.x modules/custom/social_font/social_font.module \social_font_fallback_render()
  11. 10.1.x modules/custom/social_font/social_font.module \social_font_fallback_render()
  12. 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';
}