function panels_views_add_view in Panels 5.2
Page callback to add a new view pane from an existing view.
1 string reference to 'panels_views_add_view'
- panels_views_menu in panels_views/
panels_views.module - Implementation of hook_menu().
File
- panels_views/
panels_views.module, line 212 - panels_views.module
Code
function panels_views_add_view($view_name) {
$view = views_get_view($view_name);
if (empty($view)) {
return drupal_not_found();
}
return drupal_get_form('panels_views_edit_view_form', $view, panels_views_default_view_pane($view));
}