function add_to_head_delete_profile_confirm_submit in Add To Head 6
Same name and namespace in other branches
- 7 add_to_head.admin.inc \add_to_head_delete_profile_confirm_submit()
Delete confirm form submit handler for removing a profile.
File
- ./
add_to_head.admin.inc, line 184 - This file contains all the admin-related callbacks
Code
function add_to_head_delete_profile_confirm_submit($form, &$form_state) {
$settings = variable_get('add_to_head_profiles', array());
unset($settings[$form_state['values']['_profile']['name']]);
variable_set('add_to_head_profiles', $settings);
$form_state['redirect'] = 'admin/settings/add-to-head';
}