You are here

function msnf_field_extra_fields in Multistep Nodeform 7

Implements hook_field_extra_fields().

File

./msnf.module, line 217
Main functions for module "Multistep Nodeform".

Code

function msnf_field_extra_fields() {
  $extra = array();
  foreach (node_type_get_types() as $type) {
    $step_info = msnf_info_steps('node', $type->type);
    if (empty($step_info)) {

      // There are no steps for this type so skip to next.
      continue;
    }
    $extra['node'][$type->type]['form'] = array(
      'additional_settings' => array(
        'label' => t('Additional Information'),
        'description' => t('Node module element'),
        'weight' => 100,
      ),
    );
  }
  return $extra;
}