function onlyone_node_type_delete in Allow a content type only once (Only One) 7
Same name and namespace in other branches
- 8 onlyone.module \onlyone_node_type_delete()
Implements hook_node_type_delete().
File
- ./
onlyone.module, line 253 - Allows to define if a content type must have more than one node in the site.
Code
function onlyone_node_type_delete($info) {
// Getting the content type machine name.
$content_type = $info->type;
// Loading the helper functions file.
module_load_include('inc', 'onlyone', 'onlyone.helpers');
// Deleting the value from the config.
_onlyone_delete_content_type_config($content_type);
}