You are here

function search_files_install in Search Files 6.2

Same name and namespace in other branches
  1. 5 search_files.install \search_files_install()
  2. 7.2 search_files.install \search_files_install()

File

./search_files.install, line 25
Installation and update procedures for the search_files module.

Code

function search_files_install() {
  drupal_install_schema('search_files');

  //change variable search_cron_limit to 10 so cron doesn't keep timing out
  if (variable_get('search_cron_limit', 100) > 10) {
    variable_set('search_cron_limit', 10);
    drupal_set_message(t('Your search cron limit, which limits the number of items searched per cron run, has been set to 10. If it had been left at the default 100 your cron jobs could potentially continuously timeout. If you want to change this back you can do so <a href="!link">here</a>', array(
      '!link' => url('admin/settings/search'),
    )));
  }
}