You are here

function rb_user_action_global_user in Rules Bonus Pack 6

Action for 'rb_user_action_global_user'.

File

./rb_user.module, line 164
Functions for extending user management with Rules.

Code

function rb_user_action_global_user($settings) {

  // Clear the global user cache, if requested.
  if ($settings['clear_cache']) {
    global $user;
    cache_clear_all($user->uid, 'users');
  }
  global $user;
  return array(
    'user' => $user,
  );
}