You are here

function editablefields_field_formatter_info in Editable Fields 7

Same name and namespace in other branches
  1. 5.3 editablefields.module \editablefields_field_formatter_info()
  2. 5 editablefields.module \editablefields_field_formatter_info()
  3. 5.2 editablefields.module \editablefields_field_formatter_info()
  4. 6.3 editablefields.module \editablefields_field_formatter_info()
  5. 6 editablefields.module \editablefields_field_formatter_info()
  6. 6.2 editablefields.module \editablefields_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./editablefields.module, line 11
Editable fields module.

Code

function editablefields_field_formatter_info() {
  $all_types = array_keys(field_info_field_types());
  return array(
    'editable' => array(
      'label' => t('Editable'),
      'field types' => $all_types,
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
        'click_to_edit' => FALSE,
        'click_to_edit_style' => 'button',
        'empty_text' => '',
      ),
    ),
  );
}