Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Add an option to "reset content type names" #18

@rudolfbyker

Description

@rudolfbyker

On the admin page, /admin/structure/rsc_library, add an option to "Reset content type names". This might require something along the lines of:

module_load_include('inc', 'node', 'content_types');

// reset content types
foreach(array_keys(rsc_library_node_info()) as $name) {

  $type = node_type_load($name);
  node_type_reset($type);
  node_type_save($type);

}

// rebuild content types and menus
node_types_rebuild();
menu_rebuild();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions