You are here

function panels_node_edit_layout in Panels 6.2

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

Pass through to the panels layout editor.

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

File

panels_node/panels_node.module, line 321
panels_node.module

Code

function panels_node_edit_layout($node) {
  panels_load_include('plugins');
  $display = panels_load_display($node->panels_node['did']);
  $display->context = array(
    'panel-node' => panels_context_create('node', $node),
  );
  return panels_edit_layout($display, t('Save'), "node/{$node->nid}/panel_layout");
}