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.
Such as flag_page(), flag_confirm(), and submit handlers.
Needs checking that the JS callbacks work ok with this, but AFAIK they should be fine.
Comment | File | Size | Author |
---|---|---|---|
#5 | move_menu_callbacks_to_flag_pages_inc-1698994-5.patch | 10.35 KB | Scyther |
#2 | move_menu_callbacks_to_flag_pages_inc-1698994-2.patch | 10.42 KB | Scyther |
Comments
Comment #1
joachim CreditAttribution: joachim commentedComment #2
Scyther CreditAttribution: Scyther commentedHere is a patch with the menu callbacks move to seperate file. I have tested it and it should work.
Comment #3
joachim CreditAttribution: joachim commentedThanks for the patch!
I'm afraid though that I'm pretty sure this will be broken by the massive changes over at #1681540: replace 'content' with 'entity', eg $content_type with $entity_type. I maybe should have marked 3.x issues postponed in the meantime, sorry.
Comment #4
Scyther CreditAttribution: Scyther commentedNo problem, let me know when that is done and I can make a new patch!
Comment #5
Scyther CreditAttribution: Scyther commentedUpdate patch to work with the new commits from #1681540: replace 'content' with 'entity', eg $content_type with $entity_type
Comment #6
joachim CreditAttribution: joachim commentedThat's perfect. Thanks!
Issue #1698994 by Scyther: Moved menu callbacks to a flag.pages.inc file.