2

how to share theme variables with module?

http://drupal.org

Hello,

Have written some module. Want to have access from this module to $variables variable generated for each instance of page.tpl.php. What is the correct way to do this?

Tried to using '$global $variables' declaration in mymodule.module, but it does not work -- no effect. Tried to pass $variables from theme_preprocess(&$variables) function using $_SESSION: part is passed ok, but most important part for me is not passed yet. For example: $variables['primary_links'] became empty on the side of mymodule.module; I tried explicit serialization -- still no effect.

How to solve this issue?

Thanks,

Read »
Created by Dplanet 2 years 28 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Tags for how to share theme variables with module?

Recent comments