function og_content_extra_fields in Organic groups 6
Same name and namespace in other branches
- 6.2 og.module \og_content_extra_fields()
Implementation of hook_content_extra_fields.
File
- ./
og.module, line 1754
Code
function og_content_extra_fields($type_name) {
$extra = array();
if (og_is_group_post_type($type_name)) {
$extra['og_nodeapi'] = array(
'label' => t('Groups'),
'description' => module_exists('og_access') ? t('OG audience & Public checkbox.') : t('OG audience.'),
'weight' => 0,
);
}
elseif (og_is_group_type($type_name)) {
$extra['og_description'] = array(
'label' => t('Description'),
'description' => t('Group description.'),
'weight' => -4,
);
$extra['og_selective'] = array(
'label' => t('Membership requests'),
'description' => t('Handling of group membership requests.'),
'weight' => 0,
);
$extra['og_register'] = array(
'label' => t('Registration form'),
'description' => t('Checkbox for visibility on registration form.'),
'weight' => 0,
);
$extra['og_directory'] = array(
'label' => t('List in groups directory'),
'description' => t('Checkbox for visibility in the groups directory.'),
'weight' => 0,
);
if (module_exists('locale') && ($languages = locale_language_list())) {
if (count($languages) > 1) {
$extra['og_language'] = array(
'label' => t('Group language'),
'description' => t('The default interface language for this group.'),
'weight' => 0,
);
}
}
}
return $extra;
}