You are here

function workbench_workflows_install_default_workflow_form in Workbench Moderation 7.2

Provides a form to install the default workflow.

1 string reference to 'workbench_workflows_install_default_workflow_form'
workbench_workflows_requirements in modules/workbench_workflows/workbench_workflows.install
Implements hook_requirements().

File

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

Code

function workbench_workflows_install_default_workflow_form($form, &$form_state) {
  $form = array();

  // @todo Would it be overkill to do a theme function for this form so that <p> tags
  // are not added in a normal function?
  $form['message'] = array(
    '#markup' => '<p>' . t('There are no states, events, or workflows yet on this site. Would you like to install a default configuration?') . '</p>',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Install the default workflow'),
  );
  return $form;
}