function og_menu_field_extra_fields in Organic Groups Menu (OG Menu) 7.3
Same name and namespace in other branches
- 7.2 og_menu.module \og_menu_field_extra_fields()
Implements hook_field_extra_fields().
File
- ./
og_menu.module, line 318 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_field_extra_fields() {
$extra = array();
foreach (node_type_get_types() as $type) {
if (og_is_group_type('node', $type->type)) {
// We only need to enable OG Menu on group types.
$extra['node'][$type->type] = array(
'form' => array(
'og_menu' => array(
'label' => t('OG Menu'),
'description' => t('Enable OG Menu'),
'weight' => 0,
),
),
);
}
}
return $extra;
}