You are here

function jeditable_field_formatter_info in jEditable inline content editing 7

Same name and namespace in other branches
  1. 6.2 jeditable.module \jeditable_field_formatter_info()
  2. 6 jeditable.module \jeditable_field_formatter_info()

Implements hook_field_formatter_info(),.

File

./jeditable.module, line 72
jeditable.module TODO: Provides integration between Drupal and the jEditable jquery plugin @todo: Datepicker support @todo: Ajax upload support @todo: Radioboxes/checkboxes support @todo: add required handler for date @todo: add compatibility for…

Code

function jeditable_field_formatter_info() {
  $all_types = array_keys(field_info_field_types());
  return array(
    'jeditable_textfield' => array(
      'label' => t('jEditable textfield'),
      'field types' => array(
        'text',
        'number_integer',
        'number_decimal',
        'number_float',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
        'empty_text' => '--',
      ),
    ),
    'jeditable_textarea' => array(
      'label' => t('jEditable textarea'),
      'field types' => array(
        'text_long',
        'text_with_summary',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
        'empty_text' => '--',
      ),
    ),
    // add support for 'taxonomy_term_reference'
    'jeditable_select' => array(
      'label' => t('jEditable selectlist'),
      'field types' => array(
        'list_boolean',
        'list_integer',
        'list_float',
        'list_text',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
        'empty_text' => '--',
      ),
    ),
    'jeditable_upload' => array(
      'label' => t('jEditable upload [not working]'),
      'field types' => array(
        'image',
        'file',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
        'empty_text' => '--',
      ),
    ),
    'jeditable_checkbox_radio' => array(
      'label' => t('jEditable checkboxes/radios [not working]'),
      'field types' => array(
        'list_boolean',
        'list_integer',
        'list_float',
        'list_text',
        'taxonomy_term_reference',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
      ),
    ),
    'jeditable_nodereference' => array(
      'label' => t('jEditable node reference [not working]'),
      'field types' => array(
        'nodereference',
      ),
    ),
    'jeditable_datetime' => array(
      'label' => t('jEditable datetime [not working]'),
      'field types' => array(
        'datetime',
      ),
      'settings' => array(
        'fallback_format' => NULL,
        'fallback_settings' => array(),
      ),
    ),
  );
}