You are here

function panels_views_import_view in Panels 5.2

Page callback to import a view pane.

1 string reference to 'panels_views_import_view'
panels_views_menu in panels_views/panels_views.module
Implementation of hook_menu().

File

panels_views/panels_views.module, line 585
panels_views.module

Code

function panels_views_import_view() {
  if ($_POST['form_id'] == 'panels_views_edit_view_form') {
    $panel_view = $_SESSION['pv_import'];
    drupal_set_title(t('Import panel view "@s"', array(
      '@s' => $panel_view->title,
    )));
    $view = views_get_view($panel_view->view);
    return drupal_get_form('panels_views_edit_view_form', $view, $panel_view);
  }
  return drupal_get_form('panels_views_import_form');
}