This is a great module, only problem I seem to be having so far is that the execution in context_variable_init() is far too early as there is most likely no context set yet. Therefore I suggest to implement further hooks to execute this plugin later again. I'll provide a patch for that shortly.

Comments

jurgenhaas’s picture

Status: Active » Needs review
StatusFileSize
new782 bytes

Here is the promised patch which executes after entity view has been called.

Status: Needs review » Needs work

The last submitted patch, 1: later_execution_of_plugin-2426063-1.patch, failed testing.

deciphered’s picture

The problem goes both ways, as executing later also means that variables that are utilised earlier haven't yet been modified. But that's not really an issue, because running multiple times shouldn't be a massive issue.

I'm not sure if this is the most appropriate hook to trigger on though, I will need to look into this a bit further before implementing.