Tokens don't work through theme settings

Created on 9 June 2020, almost 5 years ago
Updated 3 February 2025, 3 months ago

I searched the entire Internet, but could not find an answer, why the output of any tokens (not just custom ones) is not supported if they are inserted into the text area created through a file theme-settings.php

	$form['navbar']['navbar_phone']['navbar_phone_title'] = array(
		'#type' => 'text_format',
		'#base_type' => 'textarea',
		'#title' => t('Phone'),
		'#default_value' => theme_get_setting('navbar_phone_title')['value'],
		'#format' =>  theme_get_setting('navbar_phone_title')['format'],
		'#description' => t('Input phone number +7 (495) 003-01-00'),
		'#weight' => 10,
	);

There is a standard filter supporting the output of tokens.

💬 Support request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇷🇺Russia TheJoker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024