Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 Jul 2011 at 17:04 UTC
Updated:
16 Sep 2011 at 08:21 UTC
I would like to propose to use core function drupal_array_get_nested_value() to find proper elements instead of custom iteration.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| addressfield-drupal_array_get_nested_value.patch | 1.3 KB | ygerasimov |
Comments
Comment #1
damien tournoud commentedYep. This code largely predates
drupal_array_get_nested_value()finally getting into core.Comment #2
damien tournoud commentedThanks for the patch! Merged the first hunk into 7.x-1.x. The second hunk now has an additional check, which prevents us from replacing it with
drupal_array_get_nested_value().