function termstatus_term_save in Taxonomy Term Status 7
Save the status record of a term.
2 calls to termstatus_term_save()
- termstatus_taxonomy_term_insert in ./
termstatus.module - Implements hook_taxonomy_term_insert().
- termstatus_taxonomy_term_update in ./
termstatus.module - Implements hook_taxonomy_term_update().
File
- ./
termstatus.module, line 290 - Hook implementations and API for the taxonomy term status module.
Code
function termstatus_term_save($term) {
$status = termstatus_term_getstatus($term);
db_merge('termstatus')
->key(array(
'tid' => $term->tid,
))
->fields(array(
'status' => $status,
))
->execute();
}