You are here

function textimage_field_formatter_info in Textimage 5.2

Same name and namespace in other branches
  1. 6.2 textimage.module \textimage_field_formatter_info()
  2. 7.3 textimage.module \textimage_field_formatter_info()
  3. 7.2 textimage.module \textimage_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./textimage.module, line 889

Code

function textimage_field_formatter_info() {
  $formatters = array();
  include_once drupal_get_path('module', 'textimage') . '/textimage_admin.inc';
  foreach (textimage_get_presets() as $preset) {
    $formatters['textimage_' . $preset->name] = array(
      'label' => t('Textimage:') . ' ' . $preset->name,
      'field types' => array(
        'text',
        'email',
      ),
    );
  }
  return $formatters;
}