~glennpratt/pressflow/module_implements-cache

« back to all changes in this revision

Viewing changes to modules/user/user.module

  • Committer: David Strauss
  • Date: 2010-08-11 21:05:18 UTC
  • mfrom: (1.1.13 6-stable)
  • Revision ID: david@fourkitchens.com-20100811210518-om46mcyxbvoe88v0
MergeĀ DrupalĀ 6.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: user.module,v 1.892.2.25 2010/06/02 12:47:58 goba Exp $
 
2
// $Id: user.module,v 1.892.2.27 2010/08/06 11:58:09 goba Exp $
3
3
 
4
4
/**
5
5
 * @file
235
235
          if ($value === NULL) {
236
236
            unset($data[$key]);
237
237
          }
238
 
          else {
 
238
          elseif (!empty($key)) {
239
239
            $data[$key] = $value;
240
240
          }
241
241
        }
2529
2529
 
2530
2530
  return empty($groups) ? FALSE : $groups;
2531
2531
}
 
2532
 
 
2533
/**
 
2534
 * Prepare a destination query string for use in combination with drupal_goto().
 
2535
 *
 
2536
 * Used to direct the user back to the referring page after completing
 
2537
 * the openid login.  This function prevents the login page from being
 
2538
 * returned because that page will give an access denied message to an
 
2539
 * authenticated user.
 
2540
 *
 
2541
 * @see drupal_get_destination()
 
2542
 */
 
2543
function user_login_destination() {
 
2544
  $destination = drupal_get_destination();
 
2545
  return $destination == 'destination=user%2Flogin' ? 'destination=user' : $destination;
 
2546
}