You are here

function bundle_clone_config in bundle clone 7

Base configuration form elements.

2 calls to bundle_clone_config()
bundle_clone_admin in ./bundle_clone.clone.inc
Bundle field cloning form.
bundle_clone_admin_display in ./bundle_clone.display.inc
Bundle display settings cloning form.

File

./bundle_clone.module, line 60

Code

function bundle_clone_config(&$form, $entity_type) {
  $entity_bundles = field_info_bundles($entity_type);
  $form['config'] = array(
    '#type' => 'fieldset',
    '#title' => $entity_type,
    '#tree' => TRUE,
    '#prefix' => l('Back to entity select', 'admin/structure/bundle_clone'),
  );
  $form['config']['entity_type'] = array(
    '#type' => 'value',
    '#value' => $entity_type,
  );
  $form['config']['bundles'] = array(
    '#type' => 'value',
    '#value' => $entity_bundles,
  );
  $form['config'] += bundle_clone_entity_items($entity_bundles);
}