function og_panels_block_info in Organic groups 6
Same name and namespace in other branches
- 5.8 og_panels.module \og_panels_block_info()
- 5 og_panels.module \og_panels_block_info()
- 5.3 og_panels.module \og_panels_block_info()
- 5.7 og_panels.module \og_panels_block_info()
File
- modules/
og_panels/ og_panels.module, line 630
Code
function og_panels_block_info($module, $delta, &$info) {
switch ($delta) {
case 2:
// Provide alternate versions as content items
unset($info);
break;
default:
$info['icon'] = 'images/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']);
}
}