function rabbit_hole_uninstall() - error

Created on 28 October 2014, about 10 years ago
Updated 28 January 2023, almost 2 years ago

Came accross this error when I uninstalled Rabbit Hole 6.x-1.1

fatal error - call to non-existent function node_type_get_types() on line 48 of rabbit_hole.install (not exact wording but you get the gist)

line 48:
$node_types = array_keys(node_type_get_types());

node_type_get_types() is from Drupal 7 so needs replacing with node_get_types()

So line 48 should be:
$node_types = array_keys(node_get_types());

Rabbit Hole uninstalled without error after I made this change

πŸ› Bug report
Status

Closed: outdated

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Quillz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024