You are here

function panels_views_all_views_add in Panels 6.2

Returns the form for a new view.

1 string reference to 'panels_views_all_views_add'
panels_views_panels_content_types in panels_views/panels_views.module
Implementation of hook_panels_content_types()

File

panels_views/panels_views.module, line 183
panels_views.module

Code

function panels_views_all_views_add($id, $parents, $conf = array()) {
  list($name, $display_id) = explode('-', $id);
  $view = views_get_view($name);
  if (!$view) {
    return;
  }
  $view
    ->set_display($display_id);
  $conf['nodes_per_page'] = $view->display_handler
    ->get_option('items_per_page');
  $conf['pager_id'] = 1;
  $conf['use_pager'] = 0;
  $conf['more_link'] = 0;
  $conf['feed_icons'] = 0;
  $conf['offset'] = 0;
  $conf['panel_args'] = FALSE;
  $conf['link_to_view'] = FALSE;
  $conf['args'] = '';
  $conf['url'] = '';
  return panels_views_all_views_edit($id, $parents, $conf);
}