You are here

function og_panels_edit_layout in Organic groups 6

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

Pass through to the panels layout 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_layout'
og_panels_menu in modules/og_panels/og_panels.module

File

modules/og_panels/og_panels.module, line 490

Code

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

  // TODO I don't believe that having the context present is necessary for editing the layout.
  return panels_edit_layout($display, t('Save'), "node/{$group_node->nid}/og_panels");
}