diff --git a/theme-settings.php b/theme-settings.php index 757c637..cc503d9 100644 --- a/theme-settings.php +++ b/theme-settings.php @@ -206,10 +206,24 @@ function suitcase_interim_config_form_submit($form, &$form_state) { if (module_exists('block')) { if (!filter_format_exists('suitcase_interim_block')) { - $suitcase_interim_block_format = array( - 'format' => 'suitcase_interim_block', - 'name' => 'Suitcase Interim Block', - ); + if (module_exists('token_filter')) { + $suitcase_interim_block_format = array( + 'format' => 'suitcase_interim_block', + 'name' => 'Suitcase Interim Block', + 'filters' => array( + 'filter_tokens' => array( + 'weight' => 0, + 'status' => 1, + ), + ), + ); + } + else { + $suitcase_interim_block_format = array( + 'format' => 'suitcase_interim_block', + 'name' => 'Suitcase Interim Block', + ); + } $suitcase_interim_block_format = (object) $suitcase_interim_block_format; filter_format_save($suitcase_interim_block_format); }