Log in

View Full Version : Hook to put variable in memberinfo_block_statistics template?


JamesAB
07-27-2015, 02:31 PM
I'm trying to add an additional block to the memberinfo_block_statistics template.

However I can't find a hook that will save the variable.

I thought member_build_blocks_start would work, but my variable is not visible in the template. :confused:

Any help or suggestions would be appreciated.

Thanks,
James

JamesAB
08-01-2015, 08:33 PM
I found that the member_profileblock_fetch_unwrapped hook might work because I can set the variable there. The only problem is that this hook is called multiple times for a single page load and my plugin code involves a database query. I don't want to call the same query 6 times just to set the variable once. Any suggestions?

Thanks,
James