Instead of polluting the global namespace, this is a perfect use case for drupal_static().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

deviantintegral’s picture

Status: Active » Needs review
FileSize
1.73 KB

Tada!

deekayen’s picture

Status: Needs review » Closed (won't fix)

It wasn't a static variable before and making it static now doesn't make sense to me. Removing global declarations isn't the documented intention of the drupal_static function.