Currently, on successful ajax form submission, no data is returned.

The change here would be to first allow modules to alter data being returned (and add callbacks), and then change the js success function to call those callbacks if any are defined (similar to how Drupal.editablefields.view currently executes callbacks if they are returned).

Comments

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new1.54 KB

Here's a simple patch. The data return is now json for the POST ajax call.

jhedstrom’s picture

StatusFileSize
new1.57 KB

Updated patch that mimics the feature request here: #1266926: Expose node ID to the ajax_data alter hook.

jhedstrom’s picture

StatusFileSize
new1.58 KB

Re-rolling to dev.

mengi’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Per https://drupal.org/node/2148735, 6.x is longer maintained so issue is closed. If you wish to be a maintainer of the 6.x branch please create a new issue.