Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $type = node_type_load('marketing_tool');
- $type->type = 'download_library_item';
- $type->old_type = $type->orig_type; // This will be 'example'.
- node_type_save($type);
- node_type_update_nodes('marketing_tool', 'download_library_item');
- node_types_rebuild();
- node_access_rebuild();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement