You are here

function panels_views_edit_view in Panels 5.2

Page callback to edit a view pane.

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

File

panels_views/panels_views.module, line 224
panels_views.module

Code

function panels_views_edit_view($view_name) {
  $pv = panels_views_load($view_name);
  if (empty($pv)) {
    return drupal_not_found();
  }
  $view = views_get_view($pv->view);
  drupal_set_title(t("Edit '@title'", array(
    '@title' => $pv->title,
  )));
  return drupal_get_form('panels_views_edit_view_form', $view, $pv);
}