function fontawesome_form_system_performance_settings_alter in Font Awesome Icons 7.2
Implements hook_form_FORM_ID_alter().
Add a checkbox to Drupal Bandwidth optimization settings in performance page to provide an option to load CDN version of FontAwesome.
File
- ./
fontawesome.module, line 81 - fontawesome.module Drupal integration with Font Awesome, the iconic font for use with Bootstrap.
Code
function fontawesome_form_system_performance_settings_alter(&$form, &$form_state, $form_id) {
$form['bandwidth_optimization']['fontawesome_use_cdn'] = array(
'#type' => 'checkbox',
'#title' => t('Use CDN version of FontAwesome.'),
'#default_value' => variable_get('fontawesome_use_cdn', FALSE),
);
}