You are here

function context_omega_get_layouts in Context omega 7

Get all the layouts from the theme.

3 calls to context_omega_get_layouts()
context_omega_omega_layout_alter in ./context_omega.module
Implements hook_omega_layout_alter().
context_omega_reaction_omega_layout::options_form in plugins/context_omega_reaction_omega_layout.inc
Options form.
context_omega_reaction_omega_layout::options_form_submit in plugins/context_omega_reaction_omega_layout.inc
Override of submit handler.

File

./context_omega.module, line 52
Main module file for the Omega context integration module.

Code

function context_omega_get_layouts() {

  // Check if the function exists.
  if (function_exists('omega_layouts_info')) {
    return omega_layouts_info();
  }

  // If not try loading the omega include file.
  $file = drupal_get_path('theme', 'omega') . '/includes/omega.inc';
  if (is_file($file)) {
    require_once $file;
    return omega_layouts_info();
  }
  return array();
}