You are here

function paragraphs_previewer_field_widget_form_build in Paragraphs Previewer 7

Implements hook_field_widget_form_build().

The function paragraphs_field_multiple_value_form() calls this function for the widget module.

See also

paragraphs_field_multiple_value_form()

paragraphs_field_widget_form_build()

File

./paragraphs_previewer.module, line 169
Provides a rendered preview of a paragraphs item on an entity form..

Code

function paragraphs_previewer_field_widget_form_build(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
  module_load_include('inc', 'paragraphs', 'paragraphs.field_widget');
  $element = paragraphs_field_widget_form_build($form, $form_state, $field, $instance, $langcode, $items, $delta, $element);
  $element['#process'][] = 'paragraphs_previewer_field_widget_form_process';
  return $element;
}