Part of #1839338: [meta] Remove drupal_set_*() drupal_add_*() in favour of #attached/response for out-of-band stuff.

The culprit:

function test_page_test_page() {
  drupal_add_js(array('test-setting' => 'azAZ09();.,\\\/-_{}'), array('type' => 'setting'));
  return array(
    '#title' => t('Test page'),
    '#markup' => t('Test page text.'),
  );
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Title: Remove drupal_add_js() from system.module » Remove drupal_add_js() from system module
Status: Active » Needs review
FileSize
869 bytes
Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
870 bytes
754 bytes

Looks great: does not introduce another drupal_render($attached) call like the other patches :)

This changes an attachment that is being tested, so since it's green, it obviously doesn't break anything.

One nitpick: a missing trailing comma. Added that.

RTBC.

vijaycs85’s picture

Thanks for clean up @Wim Leers and +1 to RTBC.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.