You are here

function panels_node_add in Panels 5.2

Same name and namespace in other branches
  1. 6.3 panels_node/panels_node.module \panels_node_add()
  2. 6.2 panels_node/panels_node.module \panels_node_add()
  3. 7.3 panels_node/panels_node.module \panels_node_add()
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 172
panels_node.module

Code

function panels_node_add() {
  $output = '';
  panels_load_include('plugins');

  // If no layout selected, present a list of choices.
  foreach (panels_get_layouts() as $id => $layout) {
    $output .= panels_print_layout_link($id, $layout, $_GET['q'] . '/' . $id);
  }
  return $output;
}