You are here

function search_file_attachments_shutdown in Search File Attachments 7

Shutdown function to make sure we remember the last element processed.

1 string reference to 'search_file_attachments_shutdown'
search_file_attachments_update_index in ./search_file_attachments.module
Implements hook_update_index().

File

./search_file_attachments.inc, line 42
Heler functions, to hold the .module file clean and smart.

Code

function search_file_attachments_shutdown() {
  global $_search_file_attachments_last_change, $_search_file_attachments_last_id;
  if ($_search_file_attachments_last_change && $_search_file_attachments_last_id) {
    variable_set('search_file_attachments_cron_last_change', $_search_file_attachments_last_change);
    variable_set('search_file_attachments_cron_last_id', $_search_file_attachments_last_id);
  }
}