You are here

function og_panels_panels_contexts in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_panels.module \og_panels_panels_contexts()
  2. 5.3 og_panels.module \og_panels_panels_contexts()
  3. 5.7 og_panels.module \og_panels_panels_contexts()
  4. 6 modules/og_panels/og_panels.module \og_panels_panels_contexts()

Implementation of hook_panels_contexts()

File

./og_panels.module, line 540

Code

function og_panels_panels_contexts() {
  include_once './' . drupal_get_path('module', 'og_panels') . '/includes/groupcontext.inc';
  $args['group'] = array(
    'title' => t("Group"),
    'description' => t('A node object that is flagged as an OG group type.'),
    'context' => 'og_panels_context_create_group',
    'settings form' => 'og_panels_context_group_settings_form',
    'settings form validate' => 'og_panels_context_group_settings_form_validate',
    'keyword' => 'group',
    'context name' => 'group',
  );
  return $args;
}