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.
The page admin/config/search/metatags_quick allows to define metatags for the homepage. These are however not translatable. By defining the underlying variable to the variable module (hook_variable), these settings can be set as translatable (the same way as the home page can be set as translatable). Nice thing about this is that you don't have to do anything in your module except implementing hook_variable().
Comments
Comment #1
fietserwinIt is not so easy as suggested above. The Variable module is able to handle arrays, but, AFAICS, not arrays with different types for the elements. This would mean that we would have to split the single setting variable into 2 variables (metatags_quick_use_front and metatags_quick_front_values).