If a module already declares some variables on its own hook_variable_info() is there a way for another module to expand upon that and add another variable to that modules list.

For example, the Google Analytics Module provides the web property ID as a multilingual variable. However, none of its other variables are registered in its hook_variable_info(). It would be useful in this scenario for another module to be able to use an alter hook so that additional variables that are used in the original module could be exposed.

Comments

jose reyero’s picture

Status: Active » Fixed
StatusFileSize
new2.59 KB

Al the alter hooks are there, but they weren't documented properly.

Added documentation. See the committed patch.

  • Commit f37db4f on 7.x-2.x:
    Issue #2231365. Added documentation for hook_variable_xxx_info_alter()
    
kevla’s picture

Fantastic!

Status: Fixed » Closed (fixed)

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