test better emoji removal

This commit is contained in:
2017-09-09 10:32:46 +10:00
parent c3f0f191f3
commit 895b3b80e6
2 changed files with 36 additions and 5 deletions

View File

@@ -345,6 +345,16 @@ function booking_admin() {
'#options' => array(0 => t('No'), t('Yes')),
'#default_value' => variable_get('booking_studygroup_csv_ages', 0),
);
$form['features']['booking_enable_emoji_removal'] = array(
'#type' => 'radios',
'#title' => t('Remove emoji from user input?'),
'#description' => t('Select whether to strip emoji from user input before saving to database. Useful if mysql does not support utf8mb4.'),
'#options' => array(
0 => t('No'),
t('Yes')
),
'#default_value' => variable_get('booking_enable_emoji_removal', 1)
);
$form['misc'] = array(
'#type' => 'fieldset',
'#title' => 'Configuration Options'