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.
Some more fapi 2 cleanup.
menu.module references $_POST variable in hook_form_alter this is available in $form['#post'].
Removed $_POST reference and redundant variable $edit and used $form['#post'] directly.
Tested and submitted node_forms still get their menus added.
Please review.
Comment | File | Size | Author |
---|---|---|---|
fapi_cleanup_menu.module.patch | 1.38 KB | nickl | |
Comments
Comment #1
Jaza CreditAttribution: Jaza commentedTested, and menu editing on node forms still works fine. This is a straightforward enough patch. Code style looks pretty good to me. I say RTBC.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.
Comment #3
(not verified) CreditAttribution: commented