You are here

function font_reference_field_info in @font-your-face 7.2

Same name and namespace in other branches
  1. 7 modules/font_reference/font_reference.module \font_reference_field_info()

Implements hook_field_info().

File

modules/font_reference/font_reference.module, line 11
Defines a field type for referencing a font from a node.

Code

function font_reference_field_info() {
  return array(
    'font_reference' => array(
      'label' => t('Font reference'),
      'description' => t('This field stores the ID of a related font as an integer value.'),
      'settings' => array(
        'css_selector' => '',
      ),
      'default_widget' => 'options_select',
      'default_formatter' => 'font_reference_default',
    ),
  );
}