You are here

function og_panels_block_info in Organic groups 5.7

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

File

./og_panels.module, line 632

Code

function og_panels_block_info($module, $delta, &$info) {
  switch ($delta) {
    case 2:

      // Provide alternate versions as content items
      unset($info);
      break;
    case 'default':
      $info['icon'] = 'user-multiple.png';
      $info['required context'] = new panels_required_context(t('Group'), 'group');
      $info['path'] = drupal_get_path('module', 'og_panels') . '/';
      $info['category'] = t('Organic groups');
      break;
  }

  // These blocks do not need group context.
  if ($delta == 3 || $delta == 6) {
    unset($info['required context']);
  }
}