You are here

function lazyloader_admin_exclude_submit in Image Lazyloader 7.2

Submit handler for the lazyloader settings form.

1 string reference to 'lazyloader_admin_exclude_submit'
lazyloader_admin_exclude in ./lazyloader.admin.inc
Admin form: Exclude options.

File

./lazyloader.admin.inc, line 202
Lazyloader Admin

Code

function lazyloader_admin_exclude_submit($form, &$form_state) {
  if ($form_state['values']['op'] == t('Reset')) {

    // Reset form values.
    $form_state['values']['lazyloader_paths'] = LAZYLOADER_PATHS;
    $form_state['values']['lazyloader_page_exclude_option'] = LAZYLOADER_PAGE_EXCLUDE_OPTION;
    $form_state['values']['lazyloader_excluded_filenames'] = LAZYLOADER_EXCLUDED_FILENAMES;
  }
}