diff -r -u fasttoggle.orig/fasttoggle.toggle.inc fasttoggle/fasttoggle.toggle.inc --- fasttoggle.orig/fasttoggle.toggle.inc 2008-10-07 22:05:46 -0500 +++ fasttoggle/fasttoggle.toggle.inc 2008-10-07 22:11:09 -0500 @@ -40,7 +40,11 @@ // The action is not confirmed. The user came here through a regular link; // no AJAX was involved. That means, we need a confirmation form so that // we get a POST form. - return drupal_get_form('fasttoggle_node_option_confirm', $node, $options[$option][intval(!$node->$option)]); + if (variable_get('fasttoggle_label_style', FASTTOGGLE_LABEL_STATUS)){ + return drupal_get_form('fasttoggle_node_option_confirm', $node, $options[$option][!intval(!$node->$option)]); + } else { + return drupal_get_form('fasttoggle_node_option_confirm', $node, $options[$option][intval(!$node->$option)]); + } } } else { @@ -92,7 +96,11 @@ // The action is not confirmed. The user came here through a regular link; // no AJAX was involved. That means, we need a confirmation form so that // we get a POST form. - return drupal_get_form('fasttoggle_user_option_confirm', $user, $options[$option][intval(!$user->$option)]); + if (variable_get('fasttoggle_label_style', FASTTOGGLE_LABEL_STATUS)){ + return drupal_get_form('fasttoggle_user_option_confirm', $user, $options[$option][!intval(!$user->$option)]); + } else { + return drupal_get_form('fasttoggle_user_option_confirm', $user, $options[$option][intval(!$user->$option)]); + } } } else { @@ -148,7 +156,13 @@ // The action is not confirmed. The user came here through a regular link; // no AJAX was involved. That means, we need a confirmation form so that // we get a POST form. - return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $options[$option][intval(!$comment->$option)]); + if (variable_get('fasttoggle_label_style', FASTTOGGLE_LABEL_STATUS) == 0){ + return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $options[$option][1]); + } else if (variable_get('fasttoggle_label_style', FASTTOGGLE_LABEL_STATUS) == 1){ + return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $options[$option][2]); + } else { + return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $options[$option][0]); + } } } else {