function workflow_get_name in Workflow 5
Same name and namespace in other branches
- 5.2 workflow.module \workflow_get_name()
- 6.2 workflow.module \workflow_get_name()
- 6 workflow.module \workflow_get_name()
Given the ID of a workflow, return its name.
Parameters
integer $wid: The ID of the workflow.
Return value
string The name of the workflow.
9 calls to workflow_get_name()
- theme_workflow_edit_form in ./
workflow.module - workflow_deletewf in ./
workflow.module - Delete a workflow from the database. Deletes all states, transitions and node type mappings too. Removes workflow state information from nodes participating in this workflow.
- workflow_delete_form in ./
workflow.module - Create the form for confirmation of deleting a workflow.
- workflow_delete_form_submit in ./
workflow.module - workflow_form_alter in ./
workflow.module - Generate a forms API compliant workflow field.
File
- ./
workflow.module, line 1458
Code
function workflow_get_name($wid) {
$name = db_result(db_query("SELECT name FROM {workflows} WHERE wid = %d", $wid));
return $name;
}