Files
popsu-d7/sites/all/themes/omega/omega/includes/omega.inc
Bachir Soussi Chiadmi 1bc61b12ad first import
2015-04-08 11:40:19 +02:00

95 lines
2.2 KiB
PHP

<?php
/**
* @file
* Helper functions for the Omega base theme.
*/
/**
* A wrapper function for theme_get_settings().
*
* @param $name
* The name of the setting that you want to retrieve.
*
* @param $theme (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to the global variable $theme_key.
*
* @param $default (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to NULL.
*
* @see
* theme_get_setting().
*
* @deprecated
*/
function omega_theme_get_setting($name, $default = NULL, $theme = NULL) {
return alpha_theme_get_setting($name, $default, $theme);
}
/**
* A helper function for retrieving zone settings.
*
* @param $name
* The name of the setting that you want to retrieve.
*
* @param $zone
* The zone that you want to fetch the setting for.
*
* @param $theme (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to the global variable $theme_key.
*
* @param $default (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to NULL.
*
* @see
* alpha_theme_get_setting().
*
* @see
* theme_get_setting().
*
* @deprecated
*/
function omega_zone_get_setting($name, $zone, $default = NULL, $theme = NULL) {
return alpha_zone_get_setting($name, $zone, $default, $theme);
}
/**
* A helper function for retrieving region settings.
*
* @param $name
* The name of the setting that you want to retrieve.
*
* @param $region
* The region that you want to fetch the setting for.
*
* @param $theme (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to the global variable $theme_key.
*
* @param $default (optional)
* The name (key) of the theme that you want to fetch the
* setting for. Defaults to NULL.
*
* @see
* alpha_theme_get_setting().
*
* @see
* theme_get_setting().
*
* @deprecated
*/
function omega_region_get_setting($name, $region, $default = NULL, $theme = NULL) {
return alpha_region_get_setting($name, $region, $default, $theme);
}
/**
* @todo
* @deprecated
*/
function omega_settings() {
return alpha_settings();
}