function date_tools_remove_form in Date 7
Same name and namespace in other branches
- 6.2 date_tools/date_tools.module \date_tools_remove_form()
Menu callback; present a form for removing a field from a content type.
1 string reference to 'date_tools_remove_form'
- date_tools_menu in date_tools/
date_tools.module - Implements hook_menu().
File
- date_tools/
date_tools.module, line 126
Code
function date_tools_remove_form(&$form_state, $view_name) {
$form = array();
$form['view_name'] = array(
'#type' => 'value',
'#value' => $view_name,
);
$output = confirm_form($form, t('Are you sure you want to remove the view %view?', array(
'%view' => $view_name,
)), 'admin/structure/date', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
return $output;
}