You are here

function ajax_form_entity_field_collection_field_formatter_info in Ajax form entity 7.x

Same name and namespace in other branches
  1. 7 ajax_form_entity_field_collection/ajax_form_entity_field_collection.module \ajax_form_entity_field_collection_field_formatter_info()

Implements hook_field_formatter_info().

See also

ajax_form_entity_field_collection_field_formatter_view()

File

ajax_form_entity_field_collection/ajax_form_entity_field_collection.module, line 28
Provide formatter for ajax add / edition field collection.

Code

function ajax_form_entity_field_collection_field_formatter_info() {
  return array(
    // This formatter just displays the hex value in the color indicated.
    'ajax_field_collection' => array(
      'label' => t('Field collection edit in place'),
      'field types' => array(
        'field_collection',
      ),
      'settings' => array(
        'close_form_display' => 0,
      ),
    ),
  );
}