You are here

function panels_node_add in Panels 7.3

Same name and namespace in other branches
  1. 5.2 panels_node/panels_node.module \panels_node_add()
  2. 6.3 panels_node/panels_node.module \panels_node_add()
  3. 6.2 panels_node/panels_node.module \panels_node_add()

Override of node add page to force layout selection prior to actually editing a node.

1 string reference to 'panels_node_add'
panels_node_menu in panels_node/panels_node.module
Implementation of hook_menu().

File

panels_node/panels_node.module, line 102
panels_node.module

Code

function panels_node_add() {
  $output = '';
  ctools_include('plugins', 'panels');
  ctools_include('common', 'panels');
  $layouts = panels_common_get_allowed_layouts('panels_node');
  return panels_common_print_layout_links($layouts, 'node/add/panel', array(
    'query' => drupal_get_query_parameters(),
  ));
}