function exif_save_settings in Exif 5
1 call to exif_save_settings()
File
- ./
exif.module, line 233
Code
function exif_save_settings($values) {
db_lock_table('exif_tags');
foreach ($values as $tag) {
if (!is_array($tag) || !isset($tag['ifd'])) {
continue;
// Save only appropriate form values
}
db_query('DELETE FROM {exif_tags} WHERE ifd = %d AND tag = %d', $tag['ifd'], $tag['tag']);
db_query('INSERT INTO {exif_tags} (ifd, tag, status, weight) VALUES (%d, %d, %d, %d)', $tag['ifd'], $tag['tag'], $tag['status'], $tag['weight']);
}
db_unlock_tables();
}