Is there a way to do this in 7.x? We had the functionality in 6.x.

For example adding the node's author information into a step. I can't find a way to do this through the GUI, so I've been doing it in code (setting #access = FALSE on form elements that aren't already in a multistep group).

Thanks in advance

Comments

philipjohn’s picture

I'm also after this. I have a custom module that adds inline registration but it appears in step 1 when I need to add it to it's own step 4.

aboodred1’s picture

In order for you to add extra fields to steps, you need to implement hook_field_extra_fields

Then you will be able to control your extra field from Manage Field section (Field UI)

Example:

/**
 * Implements hook_field_extra_fields().
 */
function MODULE_NAME_field_extra_fields() {
  $extra = array();
  
  $extra['entity_type']['bundle']['form'] = array(
    'extra_field' => array(
      'label' => t('Extra Field'),
      'description' => t('Entity type bundle element'),
      'weight' => 100,
    ),
  );
  
  return $extra;
}

Entity type: could be node
bundle: could be content type name

djdevin’s picture

Status: Active » Closed (works as designed)

Thanks, this does work as designed.

I was also able to put other modules' (other than my own) fieldsets into steps by

1) implementing hook_field_extra_fields and adding a definition for their fieldset
2) removing #group = additional_settings with a form alter

This worked for Ubercart and a couple of other modules that do not use field_attach_form and field_extra_fields natively.

The validation is another issue, there are a couple bugs but there are other issues for that already.