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.
Similar to #538494: Provide user view categories as separate panes, but for the user edit form.
This is needed to allow Profile2 forms to be used.
Comment | File | Size | Author |
---|---|---|---|
#13 | ctools-pass_category_to_profile_form-1892850-13.patch | 679 bytes | Alex Bukach |
Comments
Comment #1
tim.plunkettOkay, with some help from merlinofchaos I was able to get this working.
You can now add a relationship from a user to their profile edit form.
In addition to user/%user/edit, the panel will also be loaded for user/%user_category/edit/%.
Comment #2
tim.plunkettI tested this in several different scenarios, and ended up committing http://drupalcode.org/project/ctools.git/commit/d58d900
Comment #4
Alex Bukach CreditAttribution: Alex Bukach commentedThe patch above does not send category to the profile form in fallback case. Here's a patch to fix it.
Comment #5
Alex Bukach CreditAttribution: Alex Bukach commentedMoreover, if fallback is not the case,
ctools_context_create_user_edit_form()
does not use the category. Current patch fixes this as well (not sure whether in the most natural way).Comment #6
Alex Bukach CreditAttribution: Alex Bukach commentedWas anybody able to check the patch?
Comment #10
Alex Bukach CreditAttribution: Alex Bukach commentedHere's re-rolled patch for 7.x-1.x-dev. The first part of the patch in #5 (i.e. the whole patch in #4) appear to have been committed.
Comment #12
Alex Bukach CreditAttribution: Alex Bukach at This Little Duck commented@tim.plunkett is it possible to commit the patch from #10 to 7.x? Do you have any concerns?
Comment #13
Alex Bukach CreditAttribution: Alex Bukach at This Little Duck commentedRe-rolled against the current dev.
Comment #14
Konstantin Komelin CreditAttribution: Konstantin Komelin as a volunteer commentedVote for #13. Works for me
Comment #15
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #13 to user_edit_form.inc applied cleanly to the latest ctools 7.x-1.x-dev and (if still applicable) probably needs another review.