function lazyloader_admin_configure_submit in Image Lazyloader 7.2
Submit handler for the lazyloader settings form.
1 string reference to 'lazyloader_admin_configure_submit'
- lazyloader_admin_configure in ./
lazyloader.admin.inc - Admin Form: General settings
File
- ./
lazyloader.admin.inc, line 110 - Lazyloader Admin
Code
function lazyloader_admin_configure_submit($form, &$form_state) {
if ($form_state['values']['op'] == t('Reset')) {
// Reset form values.
$form_state['values']['lazyloader_enable'] = LAZYLOADER_ENABLED;
$form_state['values']['lazyloader_distance'] = LAZYLOADER_DISTANCE;
$form_state['values']['lazyloader_icon'] = LAZYLOADER_ICON;
$form_state['values']['lazyloader_custom_icon_path'] = LAZYLOADER_CUSTOM_ICON_PATH;
$form_state['values']['lazyloader_placeholder'] = LAZYLOADER_PLACEHOLDER;
$form_state['values']['lazyloader_unload'] = LAZYLOADER_UNLOAD;
$form_state['values']['lazyloader_debounce'] = LAZYLOADER_DEBOUNCE;
$form_state['values']['lazyloader_development'] = LAZYLOADER_DEBUGGING;
}
// Rebuild the theme registry if the module was enabled/disabled.
if ($form['lazyloader_enabled']['#default_value'] !== $form_state['values']['lazyloader_enabled']) {
drupal_theme_rebuild();
}
}