function template_preprocess_web_widgets_inline_wrapper in Web Widgets 7
Same name and namespace in other branches
- 6 inline/web_widgets_style_inline.inc \template_preprocess_web_widgets_inline_wrapper()
File
- inline/
web_widgets_style_inline.inc, line 58 - Inline-embedding specific functions, preprocessing
Code
function template_preprocess_web_widgets_inline_wrapper(&$variables) {
$variables['id_suffix'] = substr(md5(request_path()), 0, 12);
$variables['head'] = drupal_get_html_head();
$variables['styles'] = drupal_get_css();
$variables['scripts'] = drupal_get_js();
$variables['content'] = drupal_get_css() . drupal_get_js() . $variables['content'];
$variables['js_string'] = drupal_json_encode($variables['content']);
}