From the Drupal Docs:
In addition, developers using submit functions to persist data to the database are encouraged to return meaningful data about the results of the operation (ids of newly created nodes, etc.) in the $form_state. This allows developers calling forms using drupal_execute() to properly handle to the results of a form's successful submission.
I've attached a very small and simple patch to help do that for the Custom Pages section. The new page id should be passed on, successfully, to the next piece of code seeing the $form_state.
Since it's so simple and (I'd think) non-controversial, I'm marking as RTBC.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | nodewords-n1008026-6.patch | 423 bytes | damienmckenna |
| nodewords_custom_pages.admin_.inc_.diff | 406 bytes | sbandyopadhyay |
Comments
Comment #2
dave reidSeems great to me. Tested that it saves correctly and committed to Git.
http://drupalcode.org/project/nodewords.git/commit/b978d51
Comment #4
sbandyopadhyay commentedThanks Dave!
Comment #5
damienmckennaNeeds to be re-rolled for 6.x-1.x.
Comment #6
damienmckennaRe-rolled and committed.