You are here

function fonts_com_fontyourface_short_preview_text in @font-your-face 7.2

Implements hook_fontyourface_short_preview_text().

File

modules/fonts_com/fonts_com.module, line 889

Code

function fonts_com_fontyourface_short_preview_text($font) {
  $metadata = unserialize($font->metadata);
  if (strpos($metadata['details']->FontLanguage, 'Latin') === FALSE) {
    return drupal_substr($metadata['details']->FontPreviewTextLong, 0, 4);
  }

  // if
  return variable_get('fontyourface_short_preview_text', 'AaGg');
}