RSS
 

theme

warning: Creating default object from empty value in /usr/local/www/jail4/kostya.in.ua/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.

Порядок выполнения preprocess функций

Order of preprocess execution

as to which function runs in what order. Fortunately, there are just three simple rules that are used to determine the order of processing. They are as follows:

  1. All preprocess functions run before all process functions
  2. template_ prefixed[module]_ prefixed functions run
  3. next. [theme]_ prefixed functions run last

This results in the following order of execution for a particular theme hook:

  1. template_preprocess()
  2. template_preprocesss_HOOK()
  3. MODULE_preprocess()