function varbase_core_preprocess in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
Implements template_preprocess() @todo check do we still need this.
File
- modules/
features/ varbase_core/ varbase_core.module, line 149
Code
function varbase_core_preprocess(&$variables, $hook) {
switch ($hook) {
case 'left_sidebar':
// Added in preprocess rather than the template to allow overrides
$variables['content_class_array'] = array(
'col-sm-9',
'col-sm-push-3',
);
$variables['left_class_array'] = array(
'col-sm-3',
'col-sm-pull-9',
);
break;
case 'right_sidebar':
// Added in preprocess rather than the template to allow overrides
$variables['content_class_array'] = array(
'col-sm-9',
);
$variables['right_class_array'] = array(
'col-sm-3',
);
break;
}
}