summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Stevenson2011-04-23 10:23:44 (GMT)
committer Karen Stevenson2011-04-23 10:23:44 (GMT)
commit85ca2bb1b58a7e3a203a90dcf3b0b0e0cf2b971e (patch)
tree2f201748d87de353936a9143f1d6fd1e1030dced
parent5662c4bb241e3d22e75b1194673c817d78946d29 (diff)
Issue #1093222 Fix broken function to remove calendar views.
-rw-r--r--date_tools/date_tools.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/date_tools/date_tools.module b/date_tools/date_tools.module
index 4a25c64..f370d85 100644
--- a/date_tools/date_tools.module
+++ b/date_tools/date_tools.module
@@ -67,7 +67,7 @@ function date_tools_menu() {
'title' => 'Remove calendar',
'access arguments' => array('administer date tools'),
'page callback' => 'drupal_get_form',
- 'page arguments' => array('date_tools_remove_form', 3),
+ 'page arguments' => array('date_tools_remove_form', 4),
'type' => MENU_CALLBACK,
);
$items['admin/structure/date/change'] = array(
@@ -123,7 +123,7 @@ function date_tools_page() {
/**
* Menu callback; present a form for removing a field from a content type.
*/
-function date_tools_remove_form(&$form_state, $view_name) {
+function date_tools_remove_form($form, &$form_state, $view_name) {
$form = array();
$form['view_name'] = array(
'#type' => 'value',
@@ -145,7 +145,6 @@ function date_tools_remove_form(&$form_state, $view_name) {
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(