Monday, July 28, 2008

array_merge_recursive error

Today, I ran into a problem with Drupal, when in the admin page, I see this message on top of the page:
array_merge_recursive() [function.array-merge-recursive]: recursion detected

The reason why this was show up because"

is put into xxx_menu hook.

The best practice is to put that into the xxx_init() function.