function panels_node_add in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_node/panels_node.module \panels_node_add()
- 6.3 panels_node/panels_node.module \panels_node_add()
- 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 154 - 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, 'node/add/panel/' . $id);
}
return $output;
}