You are here

function menu_import_form in Menu Export/Import 7

Main form for menu file upload and menu preview.

1 string reference to 'menu_import_form'
menu_import_menu in ./menu_import.module
Implementation of hook_menu().

File

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

Code

function menu_import_form($form, &$form_state) {
  if (isset($form_state['storage']['step'])) {
    $step = $form_state['storage']['step'];
  }
  else {
    $step = 1;
  }
  $form = array();

  // Call the step-specific form alters.
  $function = "menu_import_form_step{$step}";
  if (function_exists($function)) {
    $function($form, $form_state);
  }
  return $form;
}