I create feature, that add option disable/enable msnf on (add/edit) node form

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kubedan’s picture

FileSize
2.61 KB

Attach patch

kubedan’s picture

FileSize
3 KB

And I create submodule msnf_skip_validation
It use for skip validation form element between msnf steps.

Patch 1 included.

kubedan’s picture

FileSize
5.75 KB

Previous attach is bad. I attach new patch file.

stBorchert’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

1) New features only go into version 7.x, version 6.x is feature-frozen.
2) Please explain why you think this should go into Multistep nodeform.
3) Please comment your code and explain the changes.
4) What is the sub-module for? Why should this be integrated into Multistep nodeform?

kubedan’s picture

2) I use msnf on a project and I need multistep node form for adding, but for editing i need normal form (one page). So I patched msnf-6.x-1.x-dev.

4) A than i need stop validation form-elements, when I click on "previous" button. So I use skip_validation(only for drupal 6) and create msnf_skip_validation.

I dont need commit this issue to msnf, but I want share it.

kubedan’s picture

2) I use msnf on a project and I need multistep node form for adding, but for editing i need normal form (one page). So I patched msnf-6.x-1.x-dev.

4) A than i need stop validation form-elements, when I click on "previous" button. So I use skip_validation(only for drupal 6) and create msnf_skip_validation.

I dont need commit this issue to msnf, but I want share it.

stBorchert’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Marking this as "won't fix" because you can do this easily with an implementation of hook_msnf_info_steps_alter().

CKIDOW’s picture

function hook_msnf_info_steps_alter(&$steps_cached, $entity_type, $bundle, $form) {
  if ($entity_type == 'node' && is_numeric(arg(1)) && arg(2) == 'edit') {
    $steps_cached = array();
  }
}