Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Pretty self-explanatory from the title.
Basically I'm also using content profile on my user registration page and thought it would be a cool idea to be able to change the weight of the newsletter block on that page. This way i could adjust where it is displayed.
I'm able to overcome this as content profile has a weight setting that I can make higher than the newsletter (so the newsletter floats to the bottom of my form) but this would be a cool feature to add in.
If i have some time i'll see how content profile does this and build a patch.
Comments
Comment #1
levelos CreditAttribution: levelos commentedYou have know way of knowing the weight of the other form fields, so I don't think this makes sense as a setting in the module. In a particular use case, you could change it very simply using hook_form_alter() in your own module.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedHello,
I've tried to put this in a custom module but it doesn't work.
$form['mailchimp_lists_forms']['#weight'] = 99;
What would be the correct code to change the weight ?
thank you
EDIT : it works fine... my bad... Profile category weight module was still activated :)