function boost_array_find_element_by_key in Boost 6
Returns the value of the key in a multidimensional array.
http://php.net/array-key-exists#85184
1 call to boost_array_find_element_by_key()
File
- ./
boost.admin.inc, line 1725 - All the code for the Boost module's administrative interface.
Code
function &boost_array_find_element_by_key($key, &$form) {
if (array_key_exists($key, $form)) {
$ret =& $form[$key];
return $ret;
}
foreach ($form as $k => $v) {
if (is_array($v)) {
$ret =& boost_array_find_element_by_key($key, $form[$k]);
if ($ret) {
return $ret;
}
}
}
return FALSE;
}