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.
I'm using the eRecruiter profile and the Profile2 type Resume needs a way to let users reorder the education field which is a field-collection item. This can be done with the edit page (resume/%/edit) but not the resume view page which is what the user has access to. It is acceptable to add a weight field to each field collection form, but I'm not sure how to convert that weight to the field delta for each field collection item using a hook or a Rule.
Comments
Comment #1
jmuzz CreditAttribution: jmuzz commentedI think you want to implement hook_profile2_presave . You should be able to reorder $profile->field_name[language] in that function.