Adding minified versions of some of the js files that ship with Omega. Also incorpora...
[project/omega.git] / 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']['includes'][] = drupal_get_path('theme', 'omega') . '/includes/layouts/layouts.inc';
13 $registry['page']['process functions'][] = 'omega_extension_layouts_process_layout';
14 }
15
16 /**
17 * Implements hook_extension_EXTENSION_process_page().
18 */
19 function omega_extension_layouts_process_layout(&$variables) {
20 if ($layout = omega_layout()) {
21 $variables['theme_hook_suggestions'][] = 'omega_layout';
22 $variables['omega_layout'] = $layout;
23 }
24 }