function og_panels_edit_content in Organic groups 5.8
Same name and namespace in other branches
- 5 og_panels.module \og_panels_edit_content()
- 5.3 og_panels.module \og_panels_edit_content()
- 5.7 og_panels.module \og_panels_edit_content()
- 6 modules/og_panels/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'
File
- ./
og_panels.module, line 522
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);
}