You are here

function _webform_edit_summary in Webform Bonus Pack 6.3

Same name and namespace in other branches
  1. 7.3 components/summary.inc \_webform_edit_summary()

Implementation of _webform_edit_component().

File

components/summary.inc, line 27
Webform module summary component.

Code

function _webform_edit_summary($component) {
  $form = array();
  $node = node_load($component['nid']);
  $options = array();
  foreach ($node->webform['components'] as $id => $c) {
    $options[$id] = $c['name'];
  }
  $form['extra']['components'] = array(
    '#type' => 'select',
    '#title' => t('Select components to show in summary'),
    '#default_value' => $component['extra']['components'],
    '#options' => $options,
    '#multiple' => TRUE,
    '#description' => t('Select component to which current component should be mapped'),
  );
  return $form;
}