You are here

function workflow_forms in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.module \workflow_forms()

Implements hook_forms().

Allows the workflow tab form to be repeated multiple times on a page. See http://drupal.org/node/1970846. This is for Workflow Node. Workflow_field implements the same hook again.

File

./workflow.node.inc, line 27
Node specific functions, remnants of nodeapi.

Code

function workflow_forms($form_id, $args) {
  $forms = array();
  if (strpos($form_id, 'workflow_tab_form_') !== FALSE) {
    $forms[$form_id] = array(
      'callback' => 'workflow_tab_form',
    );
  }
  return $forms;
}