Active
Project:
Token
Version:
7.x-1.7
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2020 at 09:23 UTC
Updated:
18 Jun 2020 at 09:23 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| c4mumnZCRtE.jpg | 30.75 KB | TheJoker | |
| ugq2MrFPZEs.jpg | 45.3 KB | TheJoker |
Comments
Comment #2
Titus Rukenya commentedI'm searching for the same thing. Did you manage to solve this.