upgrade omega again
[indybay:drupal.git] / docs / sites / all / themes / omega / omega / includes / layouts / layouts.inc
1 <?php
2
3 /**
4  * @file
5  * Main extension file for the 'layouts' extension.
6  */
7
8 /**
9  * Implements hook_extension_EXTENSION_registry_alter().
10  */
11 function omega_extension_layouts_theme_registry_alter(&$registry) {
12   $registry['page']['process functions'][] = 'omega_extension_layouts_process_layout';
13 }
14
15 /**
16  * Implements hook_extension_EXTENSION_process_page().
17  */
18 function omega_extension_layouts_process_layout(&$variables) {
19   if ($layout = omega_layout()) {
20     $variables['theme_hook_suggestions'][] = 'omega_layout';
21     $variables['omega_layout'] = $layout;
22   }
23 }