function fontyourface_load_font_by_url in @font-your-face 7.2
Load a font from the database using its URL
1 call to fontyourface_load_font_by_url()
- fontyourface_add_theme_info_fonts in ./
fontyourface.module - Load and display fonts that have been added through THEMENAME.info.
File
- ./
fontyourface.module, line 29
Code
function fontyourface_load_font_by_url($url) {
if ($font = db_query('SELECT * FROM {fontyourface_font} WHERE url LIKE :url', array(
':url' => $url,
))
->fetchObject()) {
return $font;
}
// if
return array();
}