Skip to content

Issue #3509423: Make Google API Key configurable

Main Changes

Added google_maps_key setting:

  • Defined in guesthouse_lite.info.yml.
  • Added to the schema in guesthouse_lite.schema.yml.

Display the key in theme settings:

  • Created a new field in the theme settings form (theme-settings.php).
  • Grouped under the "Google API Key" tab.

Make the configuration available for templates:

  • Modified guesthouse_lite.theme to retrieve theme_get_setting('google_maps_key').
Edited by Brandon Lira

Merge request reports

Loading