backdrop-contrib / geofield

Stores geographic and location data (points, lines, and polygons).
GNU General Public License v2.0
0 stars 7 forks source link

Only include .inc files when needed #8

Closed jenlampton closed 6 years ago

jenlampton commented 6 years ago

At the top of geofield.module we always include the code that provides integration with modules like OpeLayers, ApacheSolr, Microdata, etc, regardless of whether those modules are installed or enabled on the site. Let's wrap each of these in a check for module_exists first and save the loading of all that code when it's not needed.