Tag1 Consulting

Performance and Scalability Experts

Drupal to js

Description:
If using PHP 5.2 or later (as required by Drupal 7+), drupal_to_js() can be simplified by using PHP's built-in json_encode() function.

Status:
Committed to Drupal 7 on March 17, 2008.
http://drupal.org/node/222578#comment-772769

Patch:
http://tag1consulting.com/patches#drupal_to_js

Original patch source:
http://drupal.org/node/222578
http://drupal.org/files/issues/improve-drupal_to_js-222578-2.patch