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.
Book module for D7 uses antiquated D6 techniques and just hasn't been updated. We can reduce the code, improve the code, and make a far better example just by reworking a bit of FAPI code.
Comment | File | Size | Author |
---|---|---|---|
#5 | drupal.book_ajax_825330_05.patch | 4.05 KB | rfay |
#3 | drupal.book_ajax_825330_03.patch | 4.12 KB | rfay |
#2 | 825330_book_module_ajax.patch | 3.99 KB | katbailey |
Comments
Comment #1
katbailey CreditAttribution: katbailey commentedSubscribing. I'll try to get a patch submitted in the next couple of days...
Comment #2
katbailey CreditAttribution: katbailey commentedOK, here's a first pass at this. The one thing I'm really not sure about is:
I'm not sure this is the correct way to do it but haven't been keeping up to speed with the relevant FAPI changes to know any better :-/
Comment #3
rfayVery nice - thanks for fixing this up.
This patch just fixes up a bug that's been there for a long time. When you switch the select back to "none" or "create a new book" it didn't remove the book-selection select control. The form was missing the ajax prefix/suffix in that case.
Comment #5
rfayWhoops. Here's the patch I intended for #3.
Comment #6
rfay#5: drupal.book_ajax_825330_05.patch queued for re-testing.
Comment #7
katbailey CreditAttribution: katbailey commentedThis is ready to go.
Comment #8
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.