You are here

function font_reference_field_settings_form in @font-your-face 7

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

Implements hook_field_settings_form().

File

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

Code

function font_reference_field_settings_form($field, $instance, $has_data) {
  $settings = $field['settings'];
  $form = array();
  $form['css_selector'] = array(
    '#type' => 'textarea',
    '#title' => t('Applied CSS selector'),
    '#default_value' => $settings['css_selector'],
  );
  return $form;
}