Theme Functions
You may have functionality that is specific to your theme and should not exist separately as a module. In these cases, you can write helper functions. To set up your helpers, you must define them in your config/theme.ini
. They should be named using Pascal case and added to the helpers
array.
Each helper function is defined in its own .php
file within your theme:
Within those files, you can define your functionality using the following template.