function tvi_remove_settings in Taxonomy Views Integrator 7
Same name and namespace in other branches
- 6 includes/tvi.query.inc \tvi_remove_settings()
Delete settings information for a taxonomy term/vocabulary in the database.
Parameters
string|int $xid: The identifier of the object for which we are loading these settings. It can be an integer or and UUID.
string $type: The type of the object for which we are loading these settings. It can be TVI_TYPE_TERM or TVI_TYPE_VOCAB.
2 calls to tvi_remove_settings()
- tvi_taxonomy_term_delete in ./
tvi.module - Implements hook_taxonomy_term_delete().
- tvi_taxonomy_vocabulary_delete in ./
tvi.module - Implements hook_taxonomy_vocabulary_delete().
File
- includes/
tvi.query.inc, line 138 - Database interface for the tvi module.
Code
function tvi_remove_settings($xid, $type = TVI_TYPE_TERM) {
$xid = _tvi_get_xid($xid, $type);
variable_del('tvi_' . $type . '_' . $xid);
}