public static function Workflow::create in Workflow 7
Creates and returns a new Workflow object.
$param string $name The name of the new Workflow
$return Workflow $workflow A new Workflow object
"New considered harmful".
1 call to Workflow::create()
- workflow_admin_ui_add_form_submit in workflow_admin_ui/workflow_admin_ui.pages.inc 
- Submit handler for the workflow add form.
File
- includes/Entity/ Workflow.php, line 61 
- Contains workflow\includes\Entity\Workflow.
Class
- Workflow
- @file Contains workflow\includes\Entity\Workflow.
Code
public static function create($name) {
  $workflow = new Workflow();
  $workflow->name = $name;
  return $workflow;
}