function node_features_disable in Features 7
Implements hook_features_disable().
When a features module is disabled, modify any node types it provides so they can be deleted manually through the content types UI.
Parameters
$module: Name of module that has been disabled.
File
- includes/
features.node.inc, line 126
Code
function node_features_disable($module) {
if ($default_types = features_get_default('node', $module)) {
foreach ($default_types as $type_name => $type_info) {
$type_info = node_type_load($type_name);
$type_info->module = 'node';
$type_info->custom = 1;
$type_info->modified = 1;
$type_info->locked = 0;
node_type_save($type_info);
}
}
}