You are here

function smart_trim_field_formatter_info in Smart Trim 7

Implements hook_field_formatter_info().

File

./smart_trim.module, line 14
Module functionality.

Code

function smart_trim_field_formatter_info() {
  return array(
    'smart_trim_format' => array(
      'label' => t('Smart trimmed'),
      'field types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'settings' => array(
        'trim_length' => 300,
        'trim_type' => 'chars',
        'trim_suffix' => '...',
        'trim_link' => FALSE,
        'more_link' => SMART_TRIM_NEVER,
        'more_text' => 'Read more',
        'summary_handler' => 'full',
        'trim_options' => array(),
        'trim_preserve_tags' => '',
      ),
    ),
  );
}