You are here

README.txt in Omega Tools 7.3

##########################################################################################
      _                _                                  _                     _
   __| | _____   _____| | ___  _ __  _ __ ___   ___ _ __ | |_    __ _  ___  ___| | _____
  / _` |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|  / _` |/ _ \/ _ \ |/ / __|
 | (_| |  __/\ V /  __/ | (_) | |_) | | | | | |  __/ | | | |_  | (_| |  __/  __/   <\__ \
  \__,_|\___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__|  \__, |\___|\___|_|\_\___/
                              |_|                               |___/
##########################################################################################

##########################################################################################
##### Omega Theme
##########################################################################################
Informational:  http://himer.us/omega960
Documentation:  http://himer.us/omega-docs
Project Page:   http://drupal.org/project/omega
Issue Queue:    http://drupal.org/project/issues/omega
Usage Stats:    http://drupal.org/project/usage/omega
Twitter:        http://twitter.com/Omeglicon
##########################################################################################
##### Preprocess Hooks
##########################################################################################

Any custom preprocess functionality can (rather than directly in template.php) be placed 
in this preprocess folder in a file named as such:

TEMPLATE_preprocess_html() = preprocess-html.inc
TEMPLATE_preprocess_page() = preprocess-page.inc
TEMPLATE_preprocess_node() = preprocess-node.inc
TEMPLATE_preprocess_comment() = preprocess-comment.inc
TEMPLATE_preprocess_region() = preprocess-region.inc
etc.

Inside of your preprocess-HOOK.inc files, you can either directly dump the PHP code as it 
would normally appear INSIDE of a preprocess function, or you can optionally (recommended) 
wrap the code in a custom hook for Alpha/Omega as such:

function THEMENAME_alpha_preprocess_HOOK(&$vars) {
  // custom functionality here
}

File

default/preprocess/README.txt
View source
  1. ##########################################################################################
  2. _ _ _ _
  3. __| | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ __ _ ___ ___| | _____
  4. / _` |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| / _` |/ _ \/ _ \ |/ / __|
  5. | (_| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | (_| | __/ __/ <\__ \
  6. \__,_|\___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| \__, |\___|\___|_|\_\___/
  7. |_| |___/
  8. ##########################################################################################
  9. ##########################################################################################
  10. ##### Omega Theme
  11. ##########################################################################################
  12. Informational: http://himer.us/omega960
  13. Documentation: http://himer.us/omega-docs
  14. Project Page: http://drupal.org/project/omega
  15. Issue Queue: http://drupal.org/project/issues/omega
  16. Usage Stats: http://drupal.org/project/usage/omega
  17. Twitter: http://twitter.com/Omeglicon
  18. ##########################################################################################
  19. ##### Preprocess Hooks
  20. ##########################################################################################
  21. Any custom preprocess functionality can (rather than directly in template.php) be placed
  22. in this preprocess folder in a file named as such:
  23. TEMPLATE_preprocess_html() = preprocess-html.inc
  24. TEMPLATE_preprocess_page() = preprocess-page.inc
  25. TEMPLATE_preprocess_node() = preprocess-node.inc
  26. TEMPLATE_preprocess_comment() = preprocess-comment.inc
  27. TEMPLATE_preprocess_region() = preprocess-region.inc
  28. etc.
  29. Inside of your preprocess-HOOK.inc files, you can either directly dump the PHP code as it
  30. would normally appear INSIDE of a preprocess function, or you can optionally (recommended)
  31. wrap the code in a custom hook for Alpha/Omega as such:
  32. function THEMENAME_alpha_preprocess_HOOK(&$vars) {
  33. // custom functionality here
  34. }