1

Is there a way to add additional fields to the config/system/site-information area such as "business location", "hours of operation", "phone number", etc. I would then like to be able to use that information throughout nodes and blocks as tokens or something like tokens.

That way if a phone number changes or business hours change you can just change it on the config page and it will change throughout the site.

Is this possible?

1 Answer 1

3

I think you could achieve this by altering the site information form in a custom module to add a custom submit function which would use the Token API to add desired values in tokens.

I found a good post explaining the token part for 6/7 here and a good post for altering the form here.

The module developer's guide is handy too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.