When useing "upload video" Viddler modul use drupal_alter to alter form with form id 'viddler_upload_js'. The warning occurs because the parameters to "form_*_alter aren't passed by reference as they should be (http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...).
Warning:
warning: Parameter 2 to *_form_alter() expected to be a reference, value given in /includes/common.inc on line 2892.
I attach a patch for this. I hope it helps.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | viddler_upload_js.patch | 629 bytes | damjan.cvetan |
| drupal_alter_by_reference.patch | 651 bytes | damjan.cvetan |
Comments
Comment #1
damjan.cvetan commentedI found a problem with path above. The form_id passed as an arguments need to be a string, not an array.
Comment #2
jeremyheslop commentedThanks. Looking into this and testing. Should show up in next release.
Comment #3
jeremyheslop commentedThanks. Looking into this and testing. Should show up in next release.