You are here

function hook_msnf_steps_skippable_alter in Multistep Nodeform 7

Alter the list of stes that are allowed to skip.

Parameters

array $skippable: List of steps to skip. @see _msnf_steps_get_skippable() for structure details.

array $context: Array of contextual variables you can use in the alter hook. The array contains:

  • form: The form array of the form the steps will be attached to.
  • form_state: The current form_state of the form.
1 invocation of hook_msnf_steps_skippable_alter()
_msnf_steps_get_skippable in ./msnf.module
Helper function to get all steps that may be skipped.

File

./msnf.api.php, line 49
Hooks provided by the Multistep Nodeform module.

Code

function hook_msnf_steps_skippable_alter(&$skippable, $context) {
  if ('article' === $context['form']['node']->type) {

    // All steps are required.
    $skippable = array();
  }
}