Move function greences_preprocess_page variables from template.php to the ces module, to make the module theme-independent. Make variables like exchange name usables for any theme. (Now only shows the exchange name when greences is installed)

Comments

xavip’s picture

Status: Needs work » Needs review

Commited changes in template.php an templates/page.tpl.php
Next step would be move greences_preprocess_page function from template.php to module ces, changing the name (greences_ -> ces_ o wherever it goes)

xavip’s picture

Commited new ces_preprocess_page function in ces.module (see https://drupal.org/node/2206883)
Next step would be erase greences_preprocess_page from template.php

xavip’s picture

Commited template.php with function greences_preprocess_page erased. In branch dev
That's all. It may work ok with ces module 7.x-1.x-dev branch and greences theme dev branch.

xavip’s picture

Status: Needs review » Closed (fixed)

The function is working ok in the ces module.

  • Commit d719321 on 7.x-1.x, 2215381-adaptative_theme by XaviP:
    Issue #2204511 - theme-independent page.tpl.php variables - changes in...
  • Commit 9be7544 on 7.x-1.x, 2215381-adaptative_theme by XaviP:
    Issue #2204511 - erase greences_preprocess_page function from template....

  • Commit d719321 on 7.x-1.x, 2215381-adaptative_theme, old-fixed-width-theme by XaviP:
    Issue #2204511 - theme-independent page.tpl.php variables - changes in...
  • Commit 9be7544 on 7.x-1.x, 2215381-adaptative_theme, old-fixed-width-theme by XaviP:
    Issue #2204511 - erase greences_preprocess_page function from template....