You are here

function tft_log_archive in Taxonomy File Tree 7

Same name and namespace in other branches
  1. 7.2 tft.module \tft_log_archive()
2 calls to tft_log_archive()
tft_archive_file_form_submit in ./tft.admin.inc
Submission callback
tft_archive_term_form_submit in ./tft.admin.inc
Submission callback

File

./tft.module, line 1453
Module hooks.

Code

function tft_log_archive($id, $type, $previous_tid, $og_nid) {
  db_insert('tft_archive_restore')
    ->fields(array(
    'id' => $id,
    'type' => $type,
    'previous_parent_tid' => $previous_tid,
    'og_nid' => $og_nid,
  ))
    ->execute();
}