function tft_archive_log in Taxonomy File Tree 7.2
Stores the archived term or file so it can easily be restored.
Parameters
int $id:
string $type: The entity type being archived. Either 'term' or 'node'.
int $previous_parent_tid: The previous parent folder tid.
2 calls to tft_archive_log()
- tft_archive_file_form_submit in modules/
tft_archive/ includes/ tft_archive.pages.inc - Submission callback for tft_archive_term_form().
- tft_archive_term_form_submit in modules/
tft_archive/ includes/ tft_archive.pages.inc - Submission callback for tft_archive_term_form().
File
- modules/
tft_archive/ tft_archive.module, line 226 - Hook implementation and logic.
Code
function tft_archive_log($id, $type, $previous_parent_tid) {
db_insert('tft_archive_restore')
->fields(array(
'id' => $id,
'type' => $type,
'previous_parent_tid' => $previous_parent_tid,
))
->execute();
}