You are here

function workflow_get_name in Workflow 6

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

7 calls to workflow_get_name()
theme_workflow_admin_ui_edit_form in workflow_admin_ui/workflow_admin_ui.module
Theme the workflow editing form.
workflow_admin_ui_delete_form in workflow_admin_ui/workflow_admin_ui.module
Form builder. Create form for confirmation of workflow deletion.
workflow_admin_ui_delete_form_submit in workflow_admin_ui/workflow_admin_ui.module
Submit handler for workflow deletion form.
workflow_admin_ui_permissions in workflow_admin_ui/workflow_admin_ui.module
View workflow permissions by role
workflow_admin_ui_state_add_form in workflow_admin_ui/workflow_admin_ui.module
Menu callback and form builder. Create form to add a workflow state.

... See full list

File

./workflow.module, line 691
Support workflows made up of arbitrary states.

Code

function workflow_get_name($wid) {
  return db_result(db_query("SELECT name FROM {workflows} WHERE wid = %d", $wid));
}