Hey thank you so much for such amazing theme.

I have found a little "bug" or maybe inconvenience when developing a new Omega sub-theme. If you try to output data using the function dpm() inside the .inc files for preprocess and process hook you don't get any output on your screen, however doing the same thing inside the template.php file using the appropriate hook it work.

So, this doesn't output anything:

preprocess-node.inc

<?php
function mytheme_alpha_preprocess_node(&$vars) {
  dpm($vars);
}

But this other method works:

template.php

<?php
function mytheme_preprocess_node(&$vars) {
  dpm($vars);
}

Any idea why this is happening?

Thank you.

Comments

marcoka’s picture

did you try dsm() too?

dhalbert’s picture

Try the new D7 debug() function, too, which is built-in and is not part of the Devel module.

I am just wondering if your mytheme_alpha_preprocess_node() is actually getting called at all.

altrugon’s picture

@e-anima Apparently dsm() never was meant to be created but since this function is well known by the users it was kept on the D7 version but it just calls dpm()

@dhalbert I didn't know that debug() function, I will try it thanks.

marcoka’s picture

Assigned: Unassigned » fubhy
marcoka’s picture

Assigned: fubhy » himerus
cellar door’s picture

Status: Active » Closed (duplicate)

Closing as a duplicate of #1422072 which has good suggestions in it.