You are here

function hook_form_alter in Workflow 8

Same name and namespace in other branches
  1. 7.2 workflow.api.php \hook_form_alter()

Implements hook_form_alter().

@usage Use this hook to alter the form on an Entity Form, Comment Form (Edit page).

See also

hook_form_workflow_transition_form_alter() for example code.

1 call to hook_form_alter()
workflow_devel_form_alter in modules/workflow_devel/workflow_devel.module
@inheritdoc
7 functions implement hook_form_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

workflow_devel_field_widget_form_alter in modules/workflow_devel/workflow_devel.module
Alter forms for field widgets provided by other modules.
workflow_devel_field_widget_workflow_default_form_alter in modules/workflow_devel/workflow_devel.module
@inheritdoc
workflow_devel_form_alter in modules/workflow_devel/workflow_devel.module
@inheritdoc
workflow_devel_form_workflow_transition_form_alter in modules/workflow_devel/workflow_devel.module
@inheritdoc
workflow_form_alter in ./workflow.form.inc
Implements hook_form_alter().

... See full list

File

./workflow.api.php, line 389
Hooks provided by the workflow module.

Code

function hook_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if (substr($form_id, 0, 8) == 'workflow') {

    // workflow_debug(__FILE__, __FUNCTION__, __LINE__, $form_id, '');
  }
}