Skip to content
6 changes: 6 additions & 0 deletions paragraphs.field_widget.inc
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 999,
'#attributes' => array(
'class' => array('paragraphs-collapse-button'),
'title' => t('Collapse'),
),
);

Expand Down Expand Up @@ -651,6 +652,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 999,
'#attributes' => array(
'class' => array('paragraphs-edit-button'),
'title' => t('Edit'),
),
);
}
Expand Down Expand Up @@ -683,6 +685,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 999,
'#attributes' => array(
'class' => array('paragraphs-togglepublish-button'),
'title' => $button_value,
),
);
}
Expand All @@ -703,6 +706,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 999,
'#attributes' => array(
'class' => array('button-danger', 'paragraph-remove-button'),
'title' => t('Remove'),
),
);
}
Expand Down Expand Up @@ -776,6 +780,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 1000,
'#attributes' => array(
'class' => array('paragraphs-restore-button'),
'title' => t('Restore'),
),
);
$element['paragraph_bundle_header']['inner_actions']['confirm_delete_button'] = array(
Expand All @@ -794,6 +799,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
'#weight' => 1001,
'#attributes' => array(
'class' => array('button-danger', 'paragraphs-deleteconfirm-button'),
'title' => t('Confirm Deletion'),
),
);
}
Expand Down
2 changes: 1 addition & 1 deletion paragraphs.info
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ configure = admin/structure/paragraphs
stylesheets[all][] = css/paragraphs.css
dependencies[] = entity
dependencies[] = entity_plus (>=1.0.5)
dependencies[] = system (>=1.33.0)
dependencies[] = system (>=1.31.0)

php = 7.1