You are here

function og_panels_edit_content in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og_panels.module \og_panels_edit_content()
  2. 5 og_panels.module \og_panels_edit_content()
  3. 5.3 og_panels.module \og_panels_edit_content()
  4. 5.7 og_panels.module \og_panels_edit_content()

Pass through to the panels content editor.

Parameters

int $did: the $did of the og_panel to be edited.

object $group_node: the node object to which the og_panel is attached.

1 string reference to 'og_panels_edit_content'
og_panels_menu in modules/og_panels/og_panels.module

File

modules/og_panels/og_panels.module, line 520

Code

function og_panels_edit_content($did, $group_node) {
  og_panels_set_breadcrumb('panel_edit', $group_node);
  $display = og_panels_load_display($did, $group_node, TRUE);

  // Print this with theme('page') so that blocks are disabled while editing a display.
  // This is important because negative margins in common block layouts (i.e, Garland)
  // messes up the drag & drop.
  print theme('page', panels_edit($display, "node/{$group_node->nid}/og_panels", $display->content_types), FALSE);
}