I have 2 hook functions in my module: hook_views_pre_render()
and hook_form_alter()
; in hook_views_pre_render()
, I retrieve some data about what nodes that are available that I need in hook_form_alter()
.
I'm looking for a way to pass the data from hook_views_pre_render()
to hook_form_alter()
. It seems simple, but I can't get it to work. Does anyone any idea?
What works for the moment is to add global $aVariable
to both the hook functions, but I believe there should be a better way.