drupal_render($function()) causes strict warnings
alpritt - July 5, 2009 - 00:41
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | other |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
This construct...
drupal_render(drupal_get_form('some_form'))
... is causing a bunch of strict warnings.

#1
From http://drupal.org/node/353069#comment-1552904 where this was introduced:
So a patch for this issue needs to fix code that *does* require drupal_render() (such as in install.php), and then make sure we have issues for fixing other occurrences The Right Way.
#2
Being pedantic.
#3
eh, I shouldn't rely on issues titles to describe bugs properly. Sample message:
Strict Standards: Only variables should be passed by reference in /Users/alanpritt/Sites/htdocs/head_headtpl3diff/install.php on line 435#4
See also #348448: PHP strict warnings when running tests which fixes all the drupal_render() calls (if not The Right Way).
#5
Let's resolve this in #348448: PHP strict warnings when running tests