By ltwinner on
I have two modules that both override the same preprocess function. However they are not being called in the order I would like. Here's an example of the problem
moduleA_preprocess_xyz($vars){
$vars['year'] = 2000;
}
moduleB_preprocess_xyz($vars){
$vars['year'] = 2010;
}
I want moduleB_preprocess_xyz to be called last so that the year is set to 2010. However moduleA_preprocess_xyz is function that is actually being called last and the year is getting set to 2000. So how do I fix this?
Comments
I think it reads them
I think it reads them alphabetically by default. Try changing the weights of the modules.