function paragraphs_field_widget_form in Paragraphs 7
Implements hook_field_widget_form().
File
- ./
paragraphs.field_widget.inc, line 35 - Holds functions for the paragraphs widgets.
Code
function paragraphs_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
switch ($instance['widget']['type']) {
case 'paragraphs_hidden':
return $element;
case 'paragraphs_embed':
return paragraphs_field_multiple_value_form($field, $instance, $langcode, $items, $form, $form_state, $delta, $element);
}
}