You are here

function linkchecker_block_custom_add_form_submit in Link checker 7

Custom submit handler for block add page.

1 string reference to 'linkchecker_block_custom_add_form_submit'
linkchecker_form_alter in ./linkchecker.module
Implements hook_form_alter().

File

./linkchecker.module, line 1112
This module periodically check links in given node types, blocks etc.

Code

function linkchecker_block_custom_add_form_submit($form, &$form_state) {
  if (variable_get('linkchecker_scan_blocks', 0)) {
    $bid = db_query('SELECT MAX(bid) FROM {block_custom}')
      ->fetchField();
    _linkchecker_add_block_custom_links($form_state['values'], $bid);
  }
}