function tvi_update_settings in Taxonomy Views Integrator 7
Same name and namespace in other branches
- 6 includes/tvi.query.inc \tvi_update_settings()
Save settings information for a taxonomy vocabulary or term to the database.
Parameters
object $settings: A TVI settings object.
3 calls to tvi_update_settings()
- tvi_submit_handler in includes/
tvi.admin.inc - Save the view taxonomy data to the database.
- tvi_update_7002 in ./
tvi.install - Drop schema in favor of {variable} table.
- tvi_update_7003 in ./
tvi.install - Add inherit parameters to settings where it's missing.
File
- includes/
tvi.query.inc, line 117 - Database interface for the tvi module.
Code
function tvi_update_settings($settings) {
if (is_object($settings)) {
$settings = (array) $settings;
}
// Do not store the view object.
unset($settings['view']);
variable_set('tvi_' . $settings['type'] . '_' . $settings['xid'], $settings);
}