You are here

function panels_views_add_view_form in Panels 5.2

Form to select a view for creating a new view pane.

1 string reference to 'panels_views_add_view_form'
panels_views_list_views in panels_views/panels_views.module
Page callback to list view panes and the initial form to add new view panes.

File

panels_views/panels_views.module, line 188
panels_views.module

Code

function panels_views_add_view_form() {
  $form['view'] = array(
    '#type' => 'select',
    '#options' => panels_views_get_all_views(),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create panel view'),
  );
  return $form;
}