function flag_actions_update_action in Flag 5
Same name and namespace in other branches
- 6.2 flag_actions.module \flag_actions_update_action()
- 6 flag_actions.module \flag_actions_update_action()
- 7.3 flag_actions.module \flag_actions_update_action()
- 7.2 flag_actions.module \flag_actions_update_action()
Update an existing flag action.
Parameters
$aid: The flag action ID to update.
$threshold: The flagging threshold at which this action will be executed.
$parameters: The action parameters.
1 call to flag_actions_update_action()
- flag_actions_form_submit in ./
flag_actions.module - Generic submit handler for saving flag actions.
File
- ./
flag_actions.module, line 135 - Actions support for the Flag module.
Code
function flag_actions_update_action($aid, $event, $threshold, $parameters) {
return db_query("UPDATE {flag_actions} SET event = '%s', threshold = %d, parameters = '%s' WHERE aid = %d", $event, $threshold, serialize($parameters), $aid);
}