You are here

function context_ui_import_page in Context 6

Same name and namespace in other branches
  1. 5 context_ui/context_ui_admin.inc \context_ui_import_page()
  2. 6.2 context_ui/context_ui.admin.inc \context_ui_import_page()

Page callback for import form. Switches form output to context form if import submission has occurred.

1 string reference to 'context_ui_import_page'
context_ui_menu in context_ui/context_ui.module
Implementation of hook_menu().

File

context_ui/context_ui.admin.inc, line 459

Code

function context_ui_import_page() {
  if (!empty($_POST) && $_POST['form_id'] == 'context_ui_form') {
    return drupal_get_form('context_ui_form', 'add');
  }
  return drupal_get_form('context_ui_import');
}