Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Allow theme implements hook_field_widget_multivalue_form_alter #538

Closed
tannguyen04 opened this issue Oct 1, 2020 · 7 comments
Closed

Allow theme implements hook_field_widget_multivalue_form_alter #538

tannguyen04 opened this issue Oct 1, 2020 · 7 comments

Comments

@tannguyen04
Copy link

tannguyen04 commented Oct 1, 2020

Hi
We already allowed theme implement hook_field_widget_form_alter.
Can we allow theme implements hook_field_widget_multivalue_form_alter too ?
For some case, admin theme need to alter field widget multiple value form to improve editor experience.

I have create a patch https://patch-diff.githubusercontent.com/raw/govCMS/GovCMS8/pull/539.patch

Thank you.

@joshua-graham-adelphi
Copy link
Contributor

Second this - good for theming multivalued paragraphs in forms.

@joshua-graham-adelphi
Copy link
Contributor

#539 - Linking the pull request.

@pandaskii
Copy link
Contributor

@joshua-graham-adelphi Good point, the same requests could be happened to GovCMS 2.x (D9) as well

I will make sure at least hook_field_widget_form_alter being ported

@joshua-graham-adelphi
Copy link
Contributor

Thanks.

I note that the function is Deprecated in Drupal 9.2.x - and should use hook_field_widget_single_element_form_alter() instead.

@see https://api.drupal.org/api/drupal/core%21modules%21field%21field.api.php/function/hook_field_widget_form_alter/9.2.x

@pandaskii
Copy link
Contributor

Well noted thanks @joshua-graham-adelphi :)

@tannguyen04
Copy link
Author

Thanks @joshua-graham-adelphi for you information.

@joshua-graham-adelphi
Copy link
Contributor

hi @tannguyen04 - any plan to implement this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants