function font_reference_allowed_values in @font-your-face 7.2
Same name and namespace in other branches
- 7 modules/font_reference/font_reference.module \font_reference_allowed_values()
Returns list of enabled fonts.
1 string reference to 'font_reference_allowed_values'
- font_reference_options_list in modules/
font_reference/ font_reference.module - Implements hook_options_list().
File
- modules/
font_reference/ font_reference.module, line 230 - Defines a field type for referencing a font from a node.
Code
function font_reference_allowed_values($field) {
$fonts = fontyourface_get_fonts('enabled = 1');
$options = array();
foreach ($fonts as $font) {
$options[$font->fid] = check_plain($font->name);
}
// foreach
return $options;
}