function fontyourface_short_preview_text in @font-your-face 7.2
Gets preview text from provider, if available.
2 calls to fontyourface_short_preview_text()
- fonts_com_browse_form in modules/
fonts_com/ fonts_com.module - Shows browse filters and results.
- views_handler_field_fontyourface_preview::render in modules/
fontyourface_ui/ views/ views_handler_field_fontyourface_preview.inc - Render the field.
4 string references to 'fontyourface_short_preview_text'
- fonts_com_fontyourface_short_preview_text in modules/
fonts_com/ fonts_com.module - Implements hook_fontyourface_short_preview_text().
- fontyourface_ui_settings_form in modules/
fontyourface_ui/ fontyourface_ui.module - Creates settings form.
- fontyourface_ui_settings_form_submit in modules/
fontyourface_ui/ fontyourface_ui.module - Handles provider imports.
- fontyourface_uninstall in ./
fontyourface.install - Implements hook_uninstall().
File
- ./
fontyourface.module, line 543
Code
function fontyourface_short_preview_text($font) {
$function = $font->provider . '_fontyourface_short_preview_text';
if (function_exists($function)) {
return $function($font);
}
// if
return variable_get('fontyourface_short_preview_text', 'AaGg');
}