in panels_everywhere_theme_registry_alter():

  // Let modules continue to do their thing
  foreach (module_implements('preprocess') as $module) {
    $registry['page']['preprocess functions'][] = $module . '_preprocess';
  }
  foreach (module_implements('preprocess_page') as $module) {
    if ($module != 'ctools') {
      $registry['page']['preprocess functions'][] = $module . '_preprocess_page';
    }
  }

this only restores HOOK_preprocess() and HOOK_preprocess_page() from modules, but not theme. Is this on purpose or is this a bug?

Comments

merlinofchaos’s picture

Status: Active » Closed (works as designed)

This is on purpose; it is completely taking over page.tpl.php from the theme when that code is being used.

asghar’s picture

Issue summary: View changes

Hi

If anybody want to call a specific [module_name]_preprocess_page hook function then you can accomplish this by using the following approach e.g

function custom_preprocess_panels_everywhere_page(&$variables) {
custom_preprocess_page($variables);
}

whereas custom is my module name. Thanks