You are here

function panels_node_edit_content in Panels 7.3

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

Pass through to the panels content editor.

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

File

panels_node/panels_node.module, line 360
panels_node.module

Code

function panels_node_edit_content($node) {
  ctools_include('context');
  $display = panels_load_display($node->panels_node['did']);
  $display->context = panels_node_get_context($node);
  ctools_include('common', 'panels');
  $content_types = panels_common_get_allowed_types('panels_node', $display->context);
  return panels_edit($display, "node/{$node->nid}/panel_content", $content_types);
}