function og_migrate_type_basic_14 in Organic groups 5
Same name and namespace in other branches
- 5.8 og.install \og_migrate_type_basic_14()
- 5.2 og.install \og_migrate_type_basic_14()
- 5.3 og.install \og_migrate_type_basic_14()
- 5.7 og.install \og_migrate_type_basic_14()
- 6.2 og.install \og_migrate_type_basic_14()
- 6 og.install \og_migrate_type_basic_14()
1 call to og_migrate_type_basic_14()
- og_update_14 in ./
og.install
File
- ./
og.install, line 386
Code
function og_migrate_type_basic_14() {
if (og_is_group_type('og')) {
$info = array(
'type' => 'og',
'name' => 'group',
'module' => 'node',
'has_title' => 1,
'title_label' => 'Group name',
'has_body' => 1,
'body_label' => 'Welcome message',
'description' => 'A group provides a home page for like minded users. There they post articles about their shared interest.',
'help' => '',
'min_word_count' => 0,
'custom' => 1,
'modified' => 1,
'locked' => 0,
'orig_type' => 'og',
);
node_type_save((object) $info);
module_disable(array(
'og_basic',
));
node_types_rebuild();
}
}