You are here

function textimage_field_formatter_info in Textimage 7.2

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

Implements hook_field_formatter_info().

File

./textimage.module, line 662
Provides text to image manipulations.

Code

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