You are here

function referral_update_7001 in User Referral 7

Upgrade variable referral_display_mode to the new referral_show_on_user_profile

File

./referral.install, line 92
Install, update and uninstall functions for the User Referral module.

Code

function referral_update_7001() {
  $display_mode = variable_get('referral_display_mode', 0);

  // If $display_mode is set to 0, we should show link on user profile page.
  variable_set('referral_show_on_user_profile', !$display_mode);
}