You are here

function template_preprocess_web_widgets_inline_async_wrapper in Web Widgets 7

Process variables for web_widgets_inline_async_wrapper.tpl.php

File

inline_async/web_widgets_style_inline_async.inc, line 57
Inline-embedding specific functions, preprocessing

Code

function template_preprocess_web_widgets_inline_async_wrapper(&$variables) {
  $variables['head'] = drupal_get_html_head();
  $variables['styles'] = drupal_get_css();
  $variables['scripts'] = drupal_get_js();
  $variables['content'] = $variables['styles'] . $variables['scripts'] . $variables['content'];
  $variables['js_string'] = drupal_json_encode($variables['content']);
  if (empty($variables['path'])) {
    global $base_url;
    $variables['path'] = $base_url . request_uri();
  }
  $variables['wid'] = 'web_widgets_inline_async_' . md5($variables['path']);
}