You are here

function workbench_workflows_install_default_workflow_form_submit in Workbench Moderation 7.2

Actually installs the default configuration.

submit handler for workbench_workflows_install_default_workflow_form().

File

modules/workbench_workflows/workbench_workflows.install, line 232
Database functions for workbench_workflows.

Code

function workbench_workflows_install_default_workflow_form_submit($form, &$form_state) {
  module_load_include('inc', 'workbench_workflows', 'includes/workbench_workflows.starter');
  workbench_workflows_import_starter_exportables();

  // Notify the user that the default workflow is installed.
  drupal_set_message(t('A default workflow with the states and events of Draft, Needs Review, and Published.'));
}