function _template_common_variables_worldpay_bg in Commerce Worldpay 7
@todo add description
Parameters
array $variables:
4 calls to _template_common_variables_worldpay_bg()
- template_preprocess_commerce_worldpay_bg_cancel in includes/
commerce_worldpay_bg.theme.inc - Template preprocess for the cancel page.
- template_preprocess_commerce_worldpay_bg_html in includes/
commerce_worldpay_bg.theme.inc - Template preprocess for the overal page (decleration) template.
- template_preprocess_commerce_worldpay_bg_page in includes/
commerce_worldpay_bg.theme.inc - Template preprocess for the main body of the page.
- template_preprocess_commerce_worldpay_bg_success in includes/
commerce_worldpay_bg.theme.inc - Template preprocess for the success page.
File
- includes/
commerce_worldpay_bg.theme.inc, line 18 - Theme and pre/process functions.
Code
function _template_common_variables_worldpay_bg(&$variables) {
if (empty($variables['settings']['site_id'])) {
$variables['site_id'] = '';
}
else {
$variables['site_id'] = $variables['settings']['site_id'];
}
$variables['site_name'] = variable_get('site_name', 'Drupal');
}