You are here

function font_reference_allowed_values in @font-your-face 7

Same name and namespace in other branches
  1. 7.2 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 228
Defines a field type for referencing a font from a node.

Code

function font_reference_allowed_values($field) {
  $fonts = fontyourface_get_fonts();
  $options = array();
  foreach ($fonts as $font) {
    $options[$font->fid] = check_plain($font->name);
  }

  // foreach
  return $options;
}