function custom_pub_features_disable_feature in Custom Publishing Options 7
Implements hook_features_disable_feature().
Parameters
$module: Name of module that has been disabled.
File
- ./
custom_pub.features.inc, line 94 - Adds support for the Features module.
Code
function custom_pub_features_disable_feature($module) {
if ($default_options = features_get_default('custom_pub', $module)) {
$pub_types = variable_get('custom_pub_types', array());
foreach ($default_options as $option_name => $option_info) {
if (isset($pub_types[$option_name])) {
unset($pub_types[$option_name]['default']);
}
}
variable_set('custom_pub_types', $pub_types);
// Rebuild schema
cache_clear_all('schema', 'cache');
}
}