function pwa_admin_generate_drusplash in Progressive Web App 7.2
1 string reference to 'pwa_admin_generate_drusplash'
- pwa_admin_configuration in ./
pwa.admin.inc - Main configuration page for PWA.
File
- ./
pwa.admin.inc, line 95 - PWA administration forms.
Code
function pwa_admin_generate_drusplash($form, &$form_state) {
// The option is disabled, remove all the associated images.
if (!$form_state['values']['pwa_apple_startup-image']) {
file_unmanaged_delete_recursive('public://pwa/apple');
}
else {
// Trigger the generation of the different splash screens.
_pwa_apple_drusplash_list();
}
}