Skip to content

Latest commit

 

History

History
 
 

preprocess

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
##########################################################################################
      _                _                                  _                     _
   __| | _____   _____| | ___  _ __  _ __ ___   ___ _ __ | |_    __ _  ___  ___| | _____
  / _` |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|  / _` |/ _ \/ _ \ |/ / __|
 | (_| |  __/\ 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
}