Currently, argument values are just passed through. It's quite tedious to consistently add entity_load() or node_load() calls.

Because JS callbacks are not URL based, we should utilize parameter name mapping with callback functions to "load" the values automatically.

In fact, we can even do this semi-automatically similarly to how hook_menu() and hook_load() operate, but instead of matching %parameter from a URL, we'd simply match the parameter name + _load.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markcarver created an issue. See original summary.

markhalliwell’s picture

Issue summary: View changes
markhalliwell’s picture

Status: Active » Needs review
FileSize
6.81 KB

This is still relatively experimental and definitely changes the behavior on what value callback parameters are passed.

This may be 7.x-3.x work. Leaving as a patch for now.

markhalliwell’s picture

Issue summary: View changes

Removing previous code example from IS now that there's a working POC.

markhalliwell’s picture

FileSize
8.05 KB

Allowed load arguments to be completely disabled (for BC).

  • markcarver committed 3a779e0 on 7.x-2.x
    Issue #2836007 by markcarver: Add "load arguments" ability
    
markhalliwell’s picture

Status: Needs review » Fixed

  • markcarver committed 3a779e0 on 8.x-3.x
    Issue #2836007 by markcarver: Add "load arguments" ability
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.