You are here

function boost_stop_crawler_submit in Boost 6

Stop Crawler

1 call to boost_stop_crawler_submit()
boost_admin_button_router in ./boost.admin.inc
1 string reference to 'boost_stop_crawler_submit'
boost_admin_boost_performance_page in ./boost.admin.inc
Form builder; Displays Boost's configuration page.

File

./boost.admin.inc, line 1663
All the code for the Boost module's administrative interface.

Code

function boost_stop_crawler_submit($form, &$form_state, $first = TRUE) {

  // Temp fix for bug in form api & buttons
  // Check to make sure this button was actually called
  if (!boost_admin_button_router(2, $first, $form, $form_state)) {
    return FALSE;
  }
  variable_set('boost_crawler_stopped', TRUE);
  variable_set('boost_crawler_number_of_threads', 0);
  drupal_set_message(t('Boost: Stop crawler signal given; all crawler threads should be stopped in less then %time', array(
    '%time' => format_interval(BOOST_MAX_THREAD_TIME),
  )));
}