Skip to content

Commit

Permalink
Clarify weight values, in code comments. DDFHER-149
Browse files Browse the repository at this point in the history
  • Loading branch information
rasben committed Dec 3, 2024
1 parent 82c3d74 commit 1c1b677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/modules/custom/dpl_admin/dpl_admin.module
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ function _dpl_admin_form_alter_node_page(array &$form, FormStateInterface $form_
* See the $form in dpl_admin_form_alter().
*/
function _dpl_admin_form_alter_user_form(array &$form, FormStateInterface $form_state, string $form_id): void {
// We're setting the numbers high, to make sure they show up last, in this
// order.
$form['account']['current_pass']['#weight'] = 997;
$form['account']['pass']['#weight'] = 998;
$form['account']['password_policy_status']['#weight'] = 999;
Expand Down

0 comments on commit 1c1b677

Please sign in to comment.