You are here

function oa_layouts_oa_core_add_panes in Open Atrium Core 7.2

Implements hook_oa_core_add_panes().

File

modules/oa_layouts/oa_layouts.module, line 57

Code

function oa_layouts_oa_core_add_panes() {
  $info = array();

  // Put comment form widget into sidebar for default node edit pages.
  $info['node_edit_panel_context']['f2ca947f-f14f-4b9e-ac1f-2f8d94ca01a6'] = array(
    'panel' => 'sidebar',
    'type' => 'node_form_comment',
    'subtype' => 'node_form_comment',
    'configuration' => array(
      'context' => 'argument_node_edit_1',
      'override_title' => 0,
      'override_title_text' => '',
      'override_title_heading' => 'h2',
    ),
    'position' => 5.5,
  );

  // Add Topics and Replies widgets to default user dashboard.
  $info['user:user:default']['f34b9365-3769-4c85-9788-bbfa336fdcad'] = array(
    'panel' => 'contentheader',
    'type' => 'views_panes',
    'subtype' => 'oa_comment_topics-comment_user_topics',
    'configuration' => array(
      'view_settings' => 'fields',
      'header_type' => 'none',
      'view_mode' => 'teaser',
    ),
    'style' => array(
      'settings' => NULL,
      'style' => 'oa_styles_oa_pane',
    ),
    'position' => 1.2,
  );
  $info['user:user:default']['c068286a-0523-45cb-9190-9cc350ad6845'] = array(
    'panel' => 'contentheader',
    'type' => 'views_panes',
    'subtype' => 'oa_comment_topics-comment_user_topics_replied',
    'configuration' => array(
      'view_settings' => 'fields',
      'header_type' => 'none',
      'view_mode' => 'teaser',
    ),
    'style' => array(
      'settings' => NULL,
      'style' => 'oa_styles_oa_pane',
    ),
    'position' => 1.3,
  );
  return $info;
}