Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
eval is odd choice here; backporting drupal_array_set_nested_value as realname_array_set_nested_value seems like a better path
Patch done quickly, not exactly tested. Didn't backport the giant comment for that function as it seemed to dominate the module.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1276980-remove-eval.patch | 1.38 KB | Dave Reid |
realname_remove_eval.patch | 1.41 KB | hefox | |
Comments
Comment #1
Dave ReidRevised patch:
1. Removes the 'array' type hints from the backport function (this would have failed PHP 4 which doesn't support type hinting).
2. Adds '#default_value' into the parents array.
I tested this just with some sample code and it works as intended.
Comment #3
Dave ReidDuh - there were no tests to run. Thanks testbot. Committed #1 to Git. http://drupalcode.org/project/realname.git/commit/a042dcb
Thanks hefox!