function workflow_update in Workflow 5.2
Same name and namespace in other branches
- 5 workflow.module \workflow_update()
- 6.2 workflow.module \workflow_update()
- 6 workflow.module \workflow_update()
Save a workflow's name in the database.
Parameters
$name: The name of the workflow.
1 call to workflow_update()
File
- ./
workflow.module, line 1669
Code
function workflow_update($wid, $name, $tab_roles) {
db_query("UPDATE {workflows} SET name = '%s', tab_roles = '%s' WHERE wid = %d", $name, implode(',', $tab_roles), $wid);
// Workflow name change affects tabs (local tasks), so force menu rebuild.
cache_clear_all('*', 'cache_menu', TRUE);
menu_rebuild();
}