You are here

function webform_workflow_is_enabled in Webform Workflow 7

Check if workflow has been enabled for the current webform.

Parameters

object $node: The webform node.

Return value

bool Whether workflow is enabled.

11 calls to webform_workflow_is_enabled()
WebformWorkflowBaseTestCase::enableWorkflow in tests/webform_workflow_base.test
Enable workflow for a webform (programmatically).
webform_workflow_change_submission_state_form in ./webform_workflow.module
Action configuration form for changing the workflow state of a submission.
webform_workflow_config_form in includes/webform_workflow.forms.inc
Configuration form.
webform_workflow_log_access in ./webform_workflow.module
Access callback for viewing the Workflow Log tab on a node or submission.
webform_workflow_log_page in includes/webform_workflow.pages.inc
Page callback to display a workflow transition log for a submission.

... See full list

File

./webform_workflow.module, line 672
A simple workflow module for webforms.

Code

function webform_workflow_is_enabled($node) {
  return isset($node->webform_workflow) && $node->webform_workflow->workflow;
}