When a node is rendered in a panel pane, hook_node_view()
is not invoked. (I use Panels 7.x-3.4.) Is there any alternative to change rendered node content in any other hook?
I have tried with hook_ctools_render_alter()
, but the HTML output of the node is presented as one large string. I need to change node content in one particular field, so I need to access a $node
variable as an array, as it happens with hook_node_view()
. I need to execute custom PHP for changing the output of one of the fields.
hook_panels_pane_content_alter
orhook_panels_pane_prerender
orhook_panels_pre_render