You are here

function paragraphs_pack_field_formatter_info in Paragraphs pack 7

Implements hook_field_formatter_info().

File

includes/paragraphs_pack.formatters.inc, line 15
Implements custom formatters: PP_FORMATTER_VIEW_MODE

Code

function paragraphs_pack_field_formatter_info() {
  $formatters = array(
    PP_FORMATTER_VIEW_MODE => array(
      'label' => t('Selected view mode'),
      'description' => t('Display the referenced entities rendered by entity_view() with selected view mode.'),
      'field types' => array(
        'entityreference',
      ),
      'settings' => array(
        PP_VIEW_MODE_SELECTION_FIELD => PP_VALUE_DEFAULT,
        'links' => TRUE,
      ),
    ),
  );
  return $formatters;
}