function template_preprocess_commerce_worldpay_bg_html in Commerce Worldpay 7
Template preprocess for the overal page (decleration) template.
File
- includes/
commerce_worldpay_bg.theme.inc, line 31 - Theme and pre/process functions.
Code
function template_preprocess_commerce_worldpay_bg_html(&$variables) {
// Pinched from template_preprocess_html()
// RDFa allows annotation of XHTML pages with RDF data, while GRDDL provides
// mechanisms for extraction of this RDF content via XSLT transformation
// using an associated GRDDL profile.
$variables['rdf_namespaces'] = drupal_get_rdf_namespaces();
$variables['grddl_profile'] = 'http://www.w3.org/1999/xhtml/vocab';
$variables['language'] = $GLOBALS['language'];
$variables['language']->dir = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
_template_common_variables_worldpay_bg($variables);
if (drupal_get_title()) {
$variables['head_title'] = strip_tags(drupal_get_title());
}
else {
$variables['head_title'] = check_plain(variable_get('site_name', 'Drupal Commerce')) . ' WorldPay payment';
}
$variables['title'] = variable_get('site_name', 'Drupal Commerce') . ' WorldPay payment';
$variables['body_attributes_array'] = array();
if (!empty($variables['settings']['site_id'])) {
$variables['body_attributes_array']['class'] = 'css-' . drupal_clean_css_identifier($variables['settings']['site_id']);
}
}