function flag_lists_update in Flag Lists 7
Same name and namespace in other branches
- 6 flag_lists.module \flag_lists_update()
- 7.3 flag_lists.module \flag_lists_update()
Saves an existing flag to the database. Better use save($flag).
2 calls to flag_lists_update()
- flag_lists_insert in ./
flag_lists.module - Saves a new flag to the database. Better use save($flag).
- flag_lists_save in ./
flag_lists.module - Saves a flag to the database. It is a wrapper around update($flag) and insert($flag).
File
- ./
flag_lists.module, line 1278 - The Flag Lists module.
Code
function flag_lists_update($flag) {
$num_updated = db_update('flag_lists_flags')
->fields(array(
'title' => $flag->title,
'name' => $flag->name,
'options' => $flag
->get_serialized_options($flag),
))
->condition('fid', $flag->fid)
->execute();
}