function date_tools_remove_form_submit in Date 7
Same name and namespace in other branches
- 6.2 date_tools/date_tools.module \date_tools_remove_form_submit()
Remove a field from a content type.
File
- date_tools/
date_tools.module, line 145
Code
function date_tools_remove_form_submit($form, &$form_state) {
$form_values = $form_state['values'];
$view_name = $form_values['view_name'];
if ($view_name && $form_values['confirm']) {
calendar_remove($view_name);
drupal_set_message(t('Removed calendar %calendar. ', array(
'%calendar' => $view_name,
)));
}
$form_state['redirect'] = 'admin/structure/date';
}