The change record https://www.drupal.org/node/2966725 requires #post_render callbacks to be changed. When I try to use

$form[#post_render][] = ...

I get an error

Argument 1 must be callable, array given

so it appears the suggested change does not even work. I rewrote the form_alter and managed to do away with the #post_render callback. Patch posted shortly.

Comments

trobey created an issue. See original summary.

trobey’s picture

Status: Active » Needs review
StatusFileSize
new2.49 KB
ptmkenny’s picture

I added the patch and clicked around; things seem fine as far as I can tell.

  • trobey committed 1f846c9 on 8.x-2.x
    Issue #3160192 by trobey: #post_render callbacks must be trusted...
trobey’s picture

Status: Needs review » Fixed

I pushed this to dev. I will try to get to the other issues as I can verify them.

Status: Fixed » Closed (fixed)

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