Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Process all the variables as one for a module to improve performance for modules with a lot of variables. Process them as an object to help organise the variables for the module and create an effective namespace.
I created a module for D7, http://petermoulding.com/variable_module, to add the OO approach on top of the current get/set/del functions. The approach could easily be implemented with the object behind the current functions for a transitional period in Drupal 8 then the current functions could be dropped in Drupal 9.
Comments
Comment #1
gddGiven that the entire variable system is being removed in Drupal 8 in favor of the new configuration system, I'm marking this Won't Fix.