/[drupal]/contributions/modules/fasttoggle/fasttoggle.toggle.inc
ViewVC logotype

Diff of /contributions/modules/fasttoggle/fasttoggle.toggle.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.1, Sat Nov 8 11:09:20 2008 UTC revision 1.1.2.2, Sat Nov 8 11:38:19 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: fasttoggle.toggle.inc,v 1.1 2007/10/07 12:44:04 timcn Exp $  // $Id: fasttoggle.toggle.inc,v 1.1.2.1 2008/11/08 11:09:20 timcn Exp $
3    
4  /**  /**
5   * Menu callback. Toggle options for a node if the action is confirmed via   * Menu callback. Toggle options for a node if the action is confirmed via
# Line 41  function fasttoggle_node_option($node, $ Line 41  function fasttoggle_node_option($node, $
41        // The action is not confirmed. The user came here through a regular link;        // The action is not confirmed. The user came here through a regular link;
42        // no AJAX was involved. That means, we need a confirmation form so that        // no AJAX was involved. That means, we need a confirmation form so that
43        // we get a POST form.        // we get a POST form.
44        return drupal_get_form('fasttoggle_node_option_confirm', $node, $options[$option][intval(!$node->$option)]);        $labels = _fasttoggle_get_label('node_'. $option, FASTTOGGLE_LABEL_STATUS);
45          return drupal_get_form('fasttoggle_node_option_confirm', $node, $labels[intval(!$node->$option)]);
46      }      }
47    }    }
48    else {    else {
# Line 94  function fasttoggle_user_option($user, $ Line 95  function fasttoggle_user_option($user, $
95        // The action is not confirmed. The user came here through a regular link;        // The action is not confirmed. The user came here through a regular link;
96        // no AJAX was involved. That means, we need a confirmation form so that        // no AJAX was involved. That means, we need a confirmation form so that
97        // we get a POST form.        // we get a POST form.
98        return drupal_get_form('fasttoggle_user_option_confirm', $user, $options[$option][intval(!$user->$option)]);        $labels = _fasttoggle_get_label('user_'. $option, FASTTOGGLE_LABEL_STATUS);
99          return drupal_get_form('fasttoggle_user_option_confirm', $user, $labels[intval(!$user->$option)]);
100      }      }
101    }    }
102    else {    else {
# Line 151  function fasttoggle_comment_option($comm Line 153  function fasttoggle_comment_option($comm
153        // The action is not confirmed. The user came here through a regular link;        // The action is not confirmed. The user came here through a regular link;
154        // no AJAX was involved. That means, we need a confirmation form so that        // no AJAX was involved. That means, we need a confirmation form so that
155        // we get a POST form.        // we get a POST form.
156        return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $options[$option][intval(!$comment->$option)]);        $labels = _fasttoggle_get_label('comment_'. $option, FASTTOGGLE_LABEL_STATUS);
157          return drupal_get_form('fasttoggle_comment_option_confirm', $comment, $labels[intval(!$comment->$option)]);
158      }      }
159    }    }
160    else {    else {

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.2