You are here

function linkchecker_admin_settings_form_submit in Link checker 7

Same name and namespace in other branches
  1. 5.2 linkchecker.module \linkchecker_admin_settings_form_submit()
  2. 6.2 includes/linkchecker.admin.inc \linkchecker_admin_settings_form_submit()

Implements hook_admin_settings_form_submit().

File

./linkchecker.admin.inc, line 288
Administrative page callbacks for the linkchecker module.

Code

function linkchecker_admin_settings_form_submit($form, &$form_state) {

  // Exclude unnecessary elements.
  unset($form_state['values']['linkchecker_analyze'], $form_state['values']['linkchecker_clear_analyze']);

  // Save form settings.
  system_settings_form_submit($form, $form_state);

  // If block scanning has been selected.
  if ($form_state['values']['linkchecker_scan_blocks'] > $form['settings']['linkchecker_scan_blocks']['#default_value']) {
    module_load_include('inc', 'linkchecker', 'linkchecker.batch');
    batch_set(_linkchecker_batch_import_block_custom());
  }
}