/[drupal]/contributions/modules/twitter/twitter.pages.inc
ViewVC logotype

Diff of /contributions/modules/twitter/twitter.pages.inc

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

revision 1.2.2.8, Thu Jul 2 13:23:44 2009 UTC revision 1.2.2.9, Sat Jul 4 16:14:08 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: twitter.pages.inc,v 1.2.2.7 2009/04/08 22:13:35 eaton Exp $  // $Id: twitter.pages.inc,v 1.2.2.8 2009/07/02 13:23:44 eaton Exp $
3    
4  /**  /**
5   *   *
# Line 257  function twitter_add_account_submit($for Line 257  function twitter_add_account_submit($for
257    module_load_include('inc', 'twitter');    module_load_include('inc', 'twitter');
258    
259    if (!empty($form_state['values']['screen_name'])) {    if (!empty($form_state['values']['screen_name'])) {
260        // if the password wasn't empty either get the account info
261        // so we can figure out if the account is protected
262        if (!empty($form_state['values']['password'])) {
263          $account = twitter_fetch_account_info($form_state['values']['screen_name'], $form_state['values']['password']);
264          if ($account['protected']) {
265            $form_state['values']['protected'] = TRUE;
266          }
267        }
268      twitter_user_save($form_state['values'], TRUE);      twitter_user_save($form_state['values'], TRUE);
269    }    }
270  }  }

Legend:
Removed from v.1.2.2.8  
changed lines
  Added in v.1.2.2.9

  ViewVC Help
Powered by ViewVC 1.1.2