You are here

function workflow_update in Workflow 5

Same name and namespace in other branches
  1. 5.2 workflow.module \workflow_update()
  2. 6.2 workflow.module \workflow_update()
  3. 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()
workflow_edit_form_submit in ./workflow.module

File

./workflow.module, line 1520

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);
}