You are here

function search_files_attachments_update_6200 in Search Files 7.2

Same name and namespace in other branches
  1. 6.2 search_files_attachments.install \search_files_attachments_update_6200()

File

./search_files_attachments.install, line 10
Installation and update procedures for the search_attachments module.

Code

function search_files_attachments_update_6200() {
  $ret = array();
  $result = db_result(db_query_range("\n              SELECT status FROM {system}\n              WHERE name = 'search_attachments'\n                AND filename LIKE '%/search_files/modules/search_attachments/search_attachments.module'\n            "), 0, 1);
  if ($result != "") {
    db_query("\n        UPDATE {system}\n        SET status = '%s'\n        WHERE name = 'search_files_attachments'\n      ", $result);
    db_query("\n        DELETE FROM {system}\n        WHERE name = 'search_attachments'\n          AND filename LIKE '%/search_files/modules/search_attachments/search_attachments.module'\n      ");
  }
  return $ret;
}