You are here

function date_tools_remove_form in Date 6.2

Same name and namespace in other branches
  1. 7 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

File

date_tools/date_tools.module, line 144

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/content/date/tools', t('This action cannot be undone.'), t('Remove'), t('Cancel'));
  return $output;
}