Skip to content
Snippets Groups Projects
Commit cef84c18 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2160603 by vijaycs85: Remove drupal_add_js() from Bartik.

parent 809f8cae
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -6,7 +6,9 @@
*/
// Put the logo path into JavaScript for the live preview.
drupal_add_js(array('color' => array('logo' => theme_get_setting('logo.url', 'bartik'))), 'setting');
$js = array('color' => array('logo' => theme_get_setting('logo.url', 'bartik')));
$js_attached['#attached']['js'][] = array('data' => $js, 'type' => 'setting');
drupal_render($js_attached);
$info = array(
// Available colors and color labels used in theme.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment