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.
it's impossible to install this module and hierarchical select at the same time, they use the same helperfunction.
the namingconvention used is not inline with the drupal standards.
/**
* Smarter version of array_merge_recursive: overwrites scalar values.
*
* From: http://www.php.net/manual/en/function.array-merge-recursive.php#82976.
*/
function array_smart_merge($array, $override) {
if (is_array($array) && is_array($override)) {
foreach ($override as $k => $v) {
if (isset($array[$k]) && is_array($v) && is_array($array[$k])) {
$array[$k] = array_smart_merge($array[$k], $v);
}
else {
$array[$k] = $v;
}
}
}
return $array;
}
Comment | File | Size | Author |
---|---|---|---|
#1 | ahah_helper.patch | 1.14 KB | rikvd |
Comments
Comment #1
rikvd CreditAttribution: rikvd commentedpatch :)
Comment #2
slip CreditAttribution: slip commentedmarked #417448: Conflict with hierarchical select module as a duplicate of this.
Comment #3
jvieille CreditAttribution: jvieille commentedIs there any reason for not committing this?
Thanks
Comment #4
jvieille CreditAttribution: jvieille commented+1
Comment #5
Rok Žlender CreditAttribution: Rok Žlender commentedCommitted thanks.