function features_cleanup_form_ignore in Features 7
Same name and namespace in other branches
- 6 features.admin.inc \features_cleanup_form_ignore()
Submit handler for ignore action on features_cleanup_form().
1 string reference to 'features_cleanup_form_ignore'
- features_cleanup_form in ./
features.admin.inc - Form for disabling orphaned dependencies.
File
- ./
features.admin.inc, line 761 - @todo.
Code
function features_cleanup_form_ignore(&$form, &$form_state) {
if (!empty($form_state['values']['orphans'])) {
$ignored = array_keys($form_state['values']['orphans']);
$ignored_orphans = variable_get('features_ignored_orphans', array());
foreach ($ignored as $module) {
$ignored_orphans[$module] = $module;
}
variable_set('features_ignored_orphans', $ignored_orphans);
}
$form_state['redirect'] = 'admin/structure/features/cleanup';
}