function vartheme_process_page in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
Implements hook_process_page().
See also
1 string reference to 'vartheme_process_page'
- vartheme_preprocess_region in themes/
vartheme/ templates/ system/ region.vars.php - Implements hook_preprocess_region().
File
- themes/
vartheme/ templates/ system/ page.vars.php, line 66 - page.vars.php
Code
function vartheme_process_page(&$variables) {
global $base_url, $language;
$variables['content_column_class'] = implode(' ', $variables['content_column_class_array']);
$variables['sidebar_first_column_class'] = implode(' ', $variables['sidebar_first_column_class_array']);
$variables['sidebar_second_column_class'] = implode(' ', $variables['sidebar_second_column_class_array']);
// Provide RTL support for assets as logo, images, etc ...
if ($language->direction == LANGUAGE_RTL) {
$rtl_path = str_replace('.png', '-rtl.png', $variables['logo']);
if (file_exists(str_replace($base_url . '/', '', $rtl_path))) {
$variables['logo'] = $rtl_path;
}
}
/* Store the page variables in cache so it can be used in region
* preprocessing.
* See region--footer.tpl.php
*/
$page =& drupal_static(__FUNCTION__);
if (!isset($page)) {
$page = $variables;
}
}