You are here

function flag_lists_update in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_update()
  2. 7 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 845
The Flag Lists module.

Code

function flag_lists_update($flag) {
  db_query("UPDATE {flag_lists_flags} SET title = '%s', name = '%s', options = '%s' WHERE fid = %d", $flag->title, $flag->name, $flag
    ->get_serialized_options($flag), $flag->fid);
}