You are here

function readmore_field_formatter_info in Readmore 7

Implements hook_field_formatter_info().

File

./readmore.field.inc, line 11
Field formatter hooks to implement a readmore.

Code

function readmore_field_formatter_info() {
  return array(
    'readmore' => array(
      'label' => t('Read more'),
      'field types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'settings' => array(
        'readmore_trim_length' => 500,
        'readmore_more_text' => 'Read more',
        'readmore_less_text' => 'Read less',
        'readmore_trim_on_break' => TRUE,
        'readmore_show_readless' => FALSE,
        'readmore_ellipsis' => TRUE,
        'readmore_wordsafe' => FALSE,
      ),
    ),
  );
}