You are here

function menu_import_form_step2 in Menu Export/Import 7

Step 2.

File

includes/admin.inc, line 291
Administrative page callbacks for menu_import module.

Code

function menu_import_form_step2(&$form, &$form_state) {
  $menu = $form_state['storage']['menu'];
  $options = $form_state['storage']['options'];
  $form['menu'] = menu_import_preview($menu, $options);
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['back'] = array(
    '#type' => 'submit',
    '#value' => t('Back'),
    '#submit' => array(
      'menu_import_form_back_submit',
    ),
    '#weight' => -1,
    '#limit_validation_errors' => array(),
  );
  $form['actions']['sumbit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
    '#submit' => array(
      'menu_import_form_step2_submit',
    ),
  );
}