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.
Seem this function node_type_form_submit got missed in the fapi form change clean up
Changing $op = isset($_POST['op']) ? $_POST['op'] : '';
To $op = isset($form_values['op']) ? $form_values['op'] : '';
So that the op information gets retrieved from the $form_values rather than $_POST to work with drupal_execute.
Tested and all seems to still work appropriately.
Comment | File | Size | Author |
---|---|---|---|
content_type.inc.patch | 664 bytes | nickl | |
Comments
Comment #1
eaton CreditAttribution: eaton commentedThis is a very simple change, and it is good. Yay.
There are a number of forms scattered around the system that peek at $_POST unecessarily; most of them do it to extract the current op. The seriesof patches that went in befor ethe freeze made that ugly trick unecessary, and made it possible for these forms to work with programmatic submission.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #3
(not verified) CreditAttribution: commented