You are here

function panels_node_context_edit in Panels 5.2

Edit contexts of a panel node.

FIXME: panels_node_edit_context() already defined in arguments/node_edit.inc.

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

File

panels_node/panels_node.module, line 399
panels_node.module

Code

function panels_node_context_edit($node) {
  panels_load_include('plugins');
  $panel_node = (object) $node->panels_node;
  $panel_node->nid = $node->nid;
  $cache = panels_common_cache_get('panel_object:panel_node', $panel_node->did);
  if (!$cache) {
    panels_common_cache_set('panel_object:panel_node', $panel_node->did, $panel_node);
  }
  else {
    $panel_node = $cache;
  }
  drupal_set_title(check_plain($node->title));
  return drupal_get_form('panels_node_context_form', $panel_node);
}