function custom_pub_features_revert in Custom Publishing Options 7
Implements hook_features_revert().
Parameters
$module: Name of module to revert content for.
File
- ./
custom_pub.features.inc, line 75 - Adds support for the Features module.
Code
function custom_pub_features_revert($module = NULL) {
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]);
}
}
variable_set('custom_pub_types', $pub_types);
custom_pub_types_rebuild();
}
}