function fontyourface_get_fonts in @font-your-face 7
Same name and namespace in other branches
- 6.2 fontyourface.module \fontyourface_get_fonts()
- 6 fontyourface.module \fontyourface_get_fonts()
- 7.2 fontyourface.module \fontyourface_get_fonts()
Gets fonts, defualt to all enabled.
3 calls to fontyourface_get_fonts()
- fontyourface_preprocess_page in ./
fontyourface.module - Implements template_preprocess_page().
- fontyourface_update_6200 in ./
fontyourface.install - Implements hook_update_N().
- font_reference_allowed_values in modules/
font_reference/ font_reference.module - Returns list of enabled fonts.
File
- ./
fontyourface.module, line 846
Code
function fontyourface_get_fonts($where = 'enabled = 1', $order_by = 'name ASC') {
$fonts = array();
$results = db_query('SELECT * FROM {fontyourface_font} WHERE ' . $where . ' ORDER BY ' . $order_by);
while ($result = $results
->fetchObject()) {
fontyourface_add_font_tags($result);
$fonts[] = $result;
}
// while
return $fonts;
}